Apache

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Im trying to send data to an Apache server, but when i use "new
NetworkCredential" it just doesnt work. i get a "method not allowed".
Does anyone ever tried to send data to an Apache server?
How did you authenticated?

I really really need this.
Thx,
Marco
 
If you have set the domain, try to leave it empty:

NetworkCredential nc = new NetworkCredential("userId", "password", "");
wrq.Credentials = nc;
wrq.PreAuthenticate = true;

....

If it doesn't work, provide us with your code...


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
i still get the message:
System.Net.WebException: The remote server returned an error: (405) Method
Not Allowed

my code:

HttpWebRequest req = (HttpWebRequest)WebRequest.Create(uploadUrl);
req.Credentials= new NetworkCredential("user","pass");
req.Method = "PUT";
req.PreAuthenticate=true;
req.AllowWriteStreamBuffering = true;
 
Back
Top