[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Connection: keep-alive
As far as I understand HTTPAPI there is no option to use a persistent
connection unless you use http_persist_open(), http_persist_post() and
http_persist_close().
Since procedure http_persist_close() is always called at the end of
http_url_get_raw()
http_url_post_raw()
http_url_post_raw2()
the TCP/IP connection is closed on each call to http_url_get() and
http_url_post().
At least I had to go this way when I tested HTTPAPI for NTLM authentication
which also requires a persistent connection.
Scott may correct me if I am wrong.
Thomas.
Am 30.07.2012 18:26, schrieb pherrick@xxxxxxxxxx:
I am using the HTTP_URL_Post.
The requirements of the webservice I am consuming states:
All HTTP connections must be persistent ('TCP Stateful"), that is , must contain the header
"Connection: keep-alive" and correctly implement its semantics.
Can HTTP_URL_Post insert the "Connection: keep-alive" into the HTTP header information?
Or must I do a COMM_Connect, with a http_persist_post?
Thanks for your help
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------