Re: WebClient with username + password

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Ram Baruch (ram_ba_ruch_at_newsgroups.nospam)
Date: 06/01/04


Date: Tue, 1 Jun 2004 10:59:13 +0200

thanx!

"Aravind C" <aravindcorera@nospam.hotmail.com> wrote in message
news:exjmcy6REHA.556@TK2MSFTNGP10.phx.gbl...
> Hi Ram,
>
> You could try setting the Credentials property of the WebClient.
>
> WebClient webClient = new WebClient();
> webClient.Credentials = new System.Net.NetworkCredential("UserName",
> "Password", "Domain");
>
> Regards,
> Aravind C
>
> "Ram Baruch" <ram_ba_ruch@newsgroups.nospam> wrote in message
> news:%23jQHgl6REHA.3140@tk2msftngp13.phx.gbl...
> > Hi,
> > I'm trying to use WebClient class to upload data. In order to upload it,
I
> > need to use my username and password. Does somebody know how can I set
it
> in
> > the WebClient class?
> > Regards,
> > Ram.
> >
> >
>
>



Relevant Pages

  • Re: WebClient with username + password
    ... You could try setting the Credentials property of the WebClient. ... Regards, ... > I'm trying to use WebClient class to upload data. ...
    (microsoft.public.dotnet.languages.csharp)
  • Remotely downloading a document form SharePoint
    ... Just using webclient in .net: ... Regards ... Bernd ... >I need to be able to remotely acces a SharePoint ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: out of memory exception using StringBuilder
    ... WebClient webClient = new WebClient; ... BTW since this is web service newsgroup, why not use attachment, take a loot at WSE 2.0 ...
    (microsoft.public.dotnet.framework.aspnet.webservices)