proxy server and aspx

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

Guest

Hello:

I'm developing a proxy server in C#-VS2005. It works fine in standard htm
and asp pages.

When I request an aspx page the client Explorer waits for a very long time
waiting the response, however the proxy server was send to it.

It’s like the client waits for more data. There is a part of code:

....
uri = new Uri(dirurl); // dirurl is the page to read
HttpWebRequest webReq = (HTTPWebRequest) WebRequest.Create(uri);
AñadirCabecera(webReq, DatosCabecera, uri); // New header for webReq
WebResponse datos;
datos = webReq.GetResponse;
Stream strm=datos.getResponseStream();
...

Then I send data through the before opened socket. It work’s fine with the
htm pages, but fails with aspx pages.

Some idea?

Thanks and sorry for my bad English!
 
Thus wrote Juan,
Hello:

I'm developing a proxy server in C#-VS2005. It works fine in standard
htm and asp pages.

When I request an aspx page the client Explorer waits for a very long
time waiting the response, however the proxy server was send to it.

It’s like the client waits for more data. There is a part of code:

...
uri = new Uri(dirurl); // dirurl is the page to read
HttpWebRequest webReq = (HTTPWebRequest) WebRequest.Create(uri);
AñadirCabecera(webReq, DatosCabecera, uri); // New header for
webReq
WebResponse datos;
datos = webReq.GetResponse;
Stream strm=datos.getResponseStream();
...
Then I send data through the before opened socket. It work’s fine with
the htm pages, but fails with aspx pages.

Some idea?

Does it happen for any request method (GET, POST, ...)? Do you implement
HTTP 1.1?
 
Back
Top