On 27 Jul 2004 05:50:18 -0700, sinan wrote:
Hi
I would like to make successive posts (queries) to a web page. To do
this I use fsockopen() as many times as the number of posts. But I
guess that this may be done via only one socket. Is this true? Or any
other way of doing this shorter? Because it comes to me redundant to
open as many sockets as queries.
Thanks
HTTP/1.1 cames with persistent connections. In fact the server may expect
the client to retry an interrupted connection (but just for once, not
several times).
Mark the length of each of your post requests and pipe them on the same
connection. You will recevie the replays in the same order. Beware that
some servers will send you a Connection: close header in the replay.
--
Timothy Madden
Romania
------------------------------------
And I don't wanna miss a thing