proxy server and aspx

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!
 
J

Joerg Jooss

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top