G
Guest
Hi,
I am trying to read some industrial webservers using the HTTP/CGI webequest
like this:
wrs = (HttpWebRequest)WebRequest.Create(HTTP/CGI-string);
mwst = (HttpWebResponse wrs.GetResponse();
str = mwst.GetResponseStream();
This usually works fine but on some servers i get:
"System.Net.WebException: The underlying connection was closed: The server
committed an HTTP protocol violation."
The same request works fine in IE and basically i just want whatever comes
from the server to parse it...
So how can i get around this http protocol violation and stille get the data
from the server ? - Is there some alternative (- and less sensitive) way to
do a CGi request ?
I am trying to read some industrial webservers using the HTTP/CGI webequest
like this:
wrs = (HttpWebRequest)WebRequest.Create(HTTP/CGI-string);
mwst = (HttpWebResponse wrs.GetResponse();
str = mwst.GetResponseStream();
This usually works fine but on some servers i get:
"System.Net.WebException: The underlying connection was closed: The server
committed an HTTP protocol violation."
The same request works fine in IE and basically i just want whatever comes
from the server to parse it...
So how can i get around this http protocol violation and stille get the data
from the server ? - Is there some alternative (- and less sensitive) way to
do a CGi request ?