Im getting a "(401) Unauthorized" error

From: CLEAR-RCIC (CLEARRCIC_at_discussions.microsoft.com)
Date: 11/08/04


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.



Relevant Pages

  • Re: Bringing out-of-print math books into print
    ... a website or Wiki where consumers of math books could "vote" for which books ... with statistics from MathSciNet showing that matroid theory is thriving; ... Setting up a web site to elicit suggestions for bringing a work back ... effectiveness of producing titles); and it is uncertain how to ...
    (sci.math.research)
  • Re: DNS Internet
    ... www delegation changing to ns415.hostgator.com ns416.hostgator.com ... I can ping ns416.hostgator.com, successfully. ... department agonized wanting to have unfettered access to the web site. ... Are you sayin your website is hosted externally AND internally?? ...
    (microsoft.public.win2000.dns)
  • Re: VS 2008 New Website...create on server?
    ... When you create a website *on a non-standard port*, like 99 instead of 80, ... you need to first create the website manually using the IIS manager. ... at the root level where you are creating the new Web site. ... FrontPage Server Extensions must be enabled for the Web site. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Papajohn, Responsibility and LIES !!!
    ... >> his personal reasons are. ... >> boys are permanently banned from accessing my web site. ... >> papajohn >> who have ... He refers to his website as being a "personal" site, ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Papajohn, Responsibility and LIES !!!
    ... > boys are permanently banned from accessing my web site. ... > papajohn who ... > The original reason paojon was banned was because I simply did not want ... He refers to his website as being a "personal" site, ...
    (microsoft.public.windowsxp.moviemaker)

Loading