I have created an application using the WebRequest and HttpWebResponse .net
classes. SSL credentials are used. The app receives a web page as a string,
parses the data and locates files that I want to download. Using the
WebClient class download method I attempt to download files however, the
download fails with a 400 error "Bad Request".
Using a web browser (IE) I can access the web page and download files
successfully.
Using netmon I compared traces from my app and the browser. It appears that
I need to send SID information, and possibly other information, from a cookie
back to the server.
When I access the web page via the application I do not receive a cookie.
Questions
1) How can I get the web server to send a cookie when using my application?
2) Once I resolve the above. How do I access the information in the cookie?
3) How do I send this information back to the server?
Thanks
classes. SSL credentials are used. The app receives a web page as a string,
parses the data and locates files that I want to download. Using the
WebClient class download method I attempt to download files however, the
download fails with a 400 error "Bad Request".
Using a web browser (IE) I can access the web page and download files
successfully.
Using netmon I compared traces from my app and the browser. It appears that
I need to send SID information, and possibly other information, from a cookie
back to the server.
When I access the web page via the application I do not receive a cookie.
Questions
1) How can I get the web server to send a cookie when using my application?
2) Once I resolve the above. How do I access the information in the cookie?
3) How do I send this information back to the server?
Thanks