A
Alan
Hi All,
I am trying to make a few calls in succession to a website to allow me to
login and then perform a search, in a c# windows program.
wcResponse =
wc.UploadData("http://www.website.com/login?service2&user=joebloggs&blah","P
OST", new byte[]{});
wcResponse =
wc.UploadData("http://www.website.com/login?service3&search="+search_string,
"POST", new byte[]{});
However when using WebClient there is no concept of any session state
between calls that would let the website think I am logged in by the time I
get to call 2. Bear in mind call2 can not be done at the same time as call
1. You see by the time I get to call 2 the website thinks I'm not logged in.
e.t.c.
Is there anyway of doing this?
Cheers
Alan
I am trying to make a few calls in succession to a website to allow me to
login and then perform a search, in a c# windows program.
wcResponse =
wc.UploadData("http://www.website.com/login?service2&user=joebloggs&blah","P
OST", new byte[]{});
wcResponse =
wc.UploadData("http://www.website.com/login?service3&search="+search_string,
"POST", new byte[]{});
However when using WebClient there is no concept of any session state
between calls that would let the website think I am logged in by the time I
get to call 2. Bear in mind call2 can not be done at the same time as call
1. You see by the time I get to call 2 the website thinks I'm not logged in.
e.t.c.
Is there anyway of doing this?
Cheers
Alan