C
Cliff Harris
I am trying to automate a series of form posts on a website. This site
requires that my session be kept alive through successive posts (it
basically tracks me by a sessionid, and if I get a new connection each time,
I get a new sessionid).
An HttpWebRequest object has a KeepAlive property that is, by default, set
to true. I have been unsuccessful in finding adequate documentation about
this. Most people seem to not want to keep the connection alive, so they
set the property to false, and is thus, the exact opposite of what I am
looking for.
What I am wondering is how I go about making successive requests with the
same connection? If KeepAlive is set to true, does the object just
automatically reuse a connection to a server if it exists? I cannnot seem
to find a way to "reuse" my webrequest object, and have to create a new one
each time.
What would be the method to create successive Requests/Responses to a server
on the same connection?
Thanks,
-Cliff
requires that my session be kept alive through successive posts (it
basically tracks me by a sessionid, and if I get a new connection each time,
I get a new sessionid).
An HttpWebRequest object has a KeepAlive property that is, by default, set
to true. I have been unsuccessful in finding adequate documentation about
this. Most people seem to not want to keep the connection alive, so they
set the property to false, and is thus, the exact opposite of what I am
looking for.
What I am wondering is how I go about making successive requests with the
same connection? If KeepAlive is set to true, does the object just
automatically reuse a connection to a server if it exists? I cannnot seem
to find a way to "reuse" my webrequest object, and have to create a new one
each time.
What would be the method to create successive Requests/Responses to a server
on the same connection?
Thanks,
-Cliff