Home All Groups Group Topic Archive Search About

Making an https request and redirecting

Author
7 Feb 2006 5:55 PM
Juan
Hello:

I'm having a trouble making an https request to an URL using c#. If i use an
internet navigator, the request works fine and it returns the XML is
supposed to return, but if I make it using c#, the server returns a 500
error code.

The only different thing with an usual https connection is that the
destination URL is a redirected URL.

Anyone has an idea of why it doesn't work?

Thanks a lot,
Juan

Author
7 Feb 2006 7:01 PM
JS
> but if I make it using c#, the server returns a 500
> error code.

Not to ask the obvious and be insulting but....

Have you associated a NetworkCredential using a valid username and
password for the server to the request?
Author
7 Feb 2006 8:57 PM
Joerg Jooss
Thus wrote js,

>> but if I make it using c#, the server returns a 500 error code.
>>
> Not to ask the obvious and be insulting but....
>
> Have you associated a NetworkCredential using a valid username and
> password for the server to the request?

Or maybe the web application checks the User-Agent header, or it expects
a cookie, or...

You have to know a little bit about the web application in order to access
it with your own client.

Cheers,
--
Joerg Jooss
news-re***@joergjooss.de

AddThis Social Bookmark Button