webrequest 401 error

  • Thread starter Thread starter Bill Michael [MS]
  • Start date Start date
B

Bill Michael [MS]

I am trying to run the following code but when I do I get a 401 error.
oRequest = (HttpWebRequest)WebRequest.Create(http://serverblah:8081/blah)

I don't think that the :8081 is being properly parsed.

Can anyone help?



TIA
 
Bill said:
I am trying to run the following code but when I do I get a 401 error.
oRequest = (HttpWebRequest)WebRequest.Create(http://serverblah:8081/blah)

I don't think that the :8081 is being properly parsed.

Can anyone help?



TIA
You might want to try creating a Uri object explicitly and then trying
the Create() method. That should show whether your doubts are
well-founded.. :)
 
Back
Top