Hi all, I need to download files from web sites and there is one that is not anonymous. For this one, I need to fill a form, for login-password, and then I can point to the file that I need to download. To do that I have created a HttpWebRequest with a uri that points to the login page (anonymous). I set the "ContentType", the "Method" and write to the stream the only three fields, "username","password" and "next_url" (with their values) that contains the form. When I call the GetResponse I get the " (401) Unauthorized". I suppose that appends because it redirects me to the other page (from "next_url" field) that is no more anonymous? Is it possible that my HttpWebRequest doesn't keep the session information between the "redirect"? Thanks for your help Patrice
|