Home All Groups Group Topic Archive Search About

proxy server and aspx

Author
30 Mar 2006 12:27 PM
Juan Segura
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!

Author
30 Mar 2006 6:49 PM
Joerg Jooss
Thus wrote Juan,

Show quote
> 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?
--
Joerg Jooss
news-re***@joergjooss.de

AddThis Social Bookmark Button