[Mono-dev] Authentication with WebRequest?
kornelpal at hotmail.com
Fri Aug 26 17:18:26 EDT 2005
If you don't want to do any special then you can simply use
HttpWebRequest.Credentials to sepcify user name and password.
----- Original Message -----
From: "Kornél Pál" <kornelpal at hotmail.com>
To: "knocte" <knocte at gmail.com>; <mono-devel-list at lists.ximian.com>
Sent: Friday, August 26, 2005 11:11 PM
Subject: Re: [Mono-dev] Authentication with WebRequest?
> You can use HttpWebRequest.Headers to specify HTTP headers.
> Note that you are actually talking about HTTP headers not TCP headers. TCP
> is a lower level layer than HTTP that you cannot manipulate using sockets.
> If you want to send the whole request as raw data you have to use sockets
> but you will have to process the response as well because you will get it
> raw data. If you need the functionality of HTTP you can use HttpWebRequest
> as it exposes a lot of options through properties.
> ----- Original Message -----
> From: "knocte" <knocte at gmail.com>
> To: <mono-devel-list at lists.ximian.com>
> Sent: Friday, August 26, 2005 11:01 PM
> Subject: [Mono-dev] Authentication with WebRequest?
>> Does anybody know if I can use WebRequest or other class to generate
>> this RAW tcp socket headers when making a request to a HTTP server?:
>> GET /resource.xxx HTTP/1.0\r\n
>> User-Agent: MyUAstring\r\n
>> Host: example.com\r\n
>> Authorization: Basic example-password\r\n\r\n
>> Thanks in advance,
>> Andrew [ knocte ]
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list