Im getting a "(401) Unauthorized" error
From: CLEAR-RCIC (CLEARRCIC_at_discussions.microsoft.com)
Date: 11/08/04
- Next message: Daniel Wilson: "Exception-handling problems"
- Previous message: Michel Gallant: "Re: Dotnet versus Java-Applets"
- Next in thread: Jeff Dillon: "Re: Im getting a "(401) Unauthorized" error"
- Reply: Jeff Dillon: "Re: Im getting a "(401) Unauthorized" error"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 8 Nov 2004 06:17:02 -0800
I'm trying to use the Webclient class to "POST" to a web site. The website
is using basic authentication. Im getting a "(401) Unauthorized" error.
Here is my basic code:
dim myWebClient as WebClient = New WebClient
myWebClient.Credentials = New NetworkCredential("user", "pass")
bytReturn = myWebClient.UploadData(strURL, bytRequest)
I know the user/pass is correct because I can log on manually to the website.
- Next message: Daniel Wilson: "Exception-handling problems"
- Previous message: Michel Gallant: "Re: Dotnet versus Java-Applets"
- Next in thread: Jeff Dillon: "Re: Im getting a "(401) Unauthorized" error"
- Reply: Jeff Dillon: "Re: Im getting a "(401) Unauthorized" error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading