Web Authentication

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear All

I have write some code to download images from web server using WebHttpRequest
It`s good on broad server. But, some servers have authentication
How can I add those info like ID , Password into my program
I have try to add on url like "http://id:[email protected]/xxx
It works on PocketIE but don`t work on my program
Please give me a hand and thanks

Joe
 
Check out the NetworkCredential class and the HttpWebRequest.Credentials property. You should be able to set the username and password and authenticate. Check out this link http://msdn.microsoft.com/library/d...stemnethttpwebrequestclasscredentialstopic.as

//Mar

----- Joey wrote: ----

Dear All

I have write some code to download images from web server using WebHttpRequest
It`s good on broad server. But, some servers have authentication
How can I add those info like ID , Password into my program
I have try to add on url like "http://id:[email protected]/xxx
It works on PocketIE but don`t work on my program
Please give me a hand and thanks

Joe
 
Back
Top