Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
We have an secured internet connection at the business i work, so we can't request pr0n etc.
Now I'ts not that I'm a pervert or something but I want to get round that security.
And I did. I made a prefetch script and uploaded it to an allowed server. The script changes all links, images, etc to the prefetch script so those are displayed also.
Problem is those post forms. Is there a way to send a post request via php?
Thanks for the reply. I have no control over the sever wich the files are on, and curl is not supported Any other adeas?
But why would it be a taboo subject? It's not that I actually gonna use it I just want to see if I can do it. Tons of pr0n at home so no need for here at work
I heard that my boss spend a whole lot of money on the system that blocks unwanted pages. So I thought let's see what I can do. In 2 minutes I got around the system so I'm curious what the possabilities exactly are. Just for fun
I just thought that bypassing security measures might be looked upon as taboo, but I suppose it's the use that is taboo, not the application itself.. just like guns
I mean, doing a redirect is easy, and can include GET data since that is in the URL.
Is there a similarly easy way to redirect to a given URL with programmatically appended POST data?
Or, barring that, simple directions on how to use fsockopen() to do a POST rather than the generic link of using it to literally open a socket, build the statement manually, etc.??
zeveck wrote:Using fsockopen() looks like overkill.
I mean, doing a redirect is easy, and can include GET data since that is in the URL.
Is there a similarly easy way to redirect to a given URL with programmatically appended POST data?
Or, barring that, simple directions on how to use fsockopen() to do a POST rather than the generic link of using it to literally open a socket, build the statement manually, etc.??
Sending POST with fsockopen isn't hard really. HTTP headers are very very simple cURL makes it easier granted. POST is not URL based so it cannot be done via URL no
I assume they're doing filtering on a site blacklist basis. These connections have to go through the network, so they can be bypassed. However, a proxy server allows you to connect to only one IP: the IP of the proxy server, which then makes connections to the blocked IPs without restriction. It's sorta like those open proxies you can find on the web, only it's faster and more secure.
you have to download these following classes which would help you make POST and GET messages.
PEAR class
URL class
Socket class
Request class
basically you would have to use Request class and you have to include this in your script file and the other files will be included in Request.php. If you see the Request.php file , you will see include paths and make sure you put the other files in the directories as specified in Request.php include statements...