Sockets/Bots Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ImpactDNI
Forum Newbie
Posts: 1
Joined: Tue May 25, 2004 8:40 pm

Sockets/Bots Question

Post by ImpactDNI »

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...
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

You sure the page exists, try using fopen() if your just trying to grab the page.
Post Reply