Sockets/Bots Question
Posted: Tue May 25, 2004 8:40 pm
So I'm in the process of teaching myself sockets for use in basic bots...
I am having problems with connections to websites. My first request will go through, but the 2nd request I send, the site doesn't send anything back (The first responce ended with "Connection: Close"...
I have tried killing the socket and fsockopen() it again, but still no luck.
Anyone have any ideas?
Edit: Should have mentioned, the reason it needs a second GET statement is because I recieve a "302 Moved Temp." response to the first one... I update my GET command with the new link, and add the cookies the first response tries to set, and send back, but recieve no response...
I am having problems with connections to websites. My first request will go through, but the 2nd request I send, the site doesn't send anything back (The first responce ended with "Connection: Close"...
I have tried killing the socket and fsockopen() it again, but still no luck.
Anyone have any ideas?
Edit: Should have mentioned, the reason it needs a second GET statement is because I recieve a "302 Moved Temp." response to the first one... I update my GET command with the new link, and add the cookies the first response tries to set, and send back, but recieve no response...