Re: Im getting a "(401) Unauthorized" error
From: Jeff Dillon (jeff_at_removeemergencyreporting.com)
Date: 11/08/04
- Next message: Lj: "debugging stoped working"
- Previous message: Jeff Dillon: "Re: label.visible"
- In reply to: CLEAR-RCIC: "Im getting a "(401) Unauthorized" error"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 8 Nov 2004 13:11:03 -0800
perhaps "domain\username" or "machinename\username" instead of just
"username"? just guessing...
Also, you should see something in the Event Log.
Jeff
"CLEAR-RCIC" <CLEARRCIC@discussions.microsoft.com> wrote in message
news:FF8E3890-2253-434B-8FD3-A91E70BECB52@microsoft.com...
> 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: Lj: "debugging stoped working"
- Previous message: Jeff Dillon: "Re: label.visible"
- In reply to: CLEAR-RCIC: "Im getting a "(401) Unauthorized" error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|