please help
-
I can execute a URL on someone else's server (del.icio.us) if I type in the URL, but for some reason, the same URL gives me a 401 error when I try to execute and stream the result (which is a bit of text as an xml result code) using an http stream reader or xml reader object. Please please give me any pointers. I've been searching this issue for two days now. I don't get it. What process am I utilizing when I run the URL in the browser that gives me the different result? How can I use this same process, but in my code? del.icio.us usese Http basic authentication, by the way.
-
I can execute a URL on someone else's server (del.icio.us) if I type in the URL, but for some reason, the same URL gives me a 401 error when I try to execute and stream the result (which is a bit of text as an xml result code) using an http stream reader or xml reader object. Please please give me any pointers. I've been searching this issue for two days now. I don't get it. What process am I utilizing when I run the URL in the browser that gives me the different result? How can I use this same process, but in my code? del.icio.us usese Http basic authentication, by the way.
Found the answer: HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("http://del.icio.us/api/posts/add?&url=blah"); myReq.Credentials = new NetworkCredential(username, password); WebResponse myRes = myReq.GetResponse(); myRes.Close();