I assume you are using Internet Explorer right?
I used the Network Monitor to observe the http request/response and come to
the following conclusion.

When you issue a redirect from the asp.net, a Http 302 is returned from
IIS. If you original request is a get method, I.E will issue another get to
get the pdf file and the result you get is correct. I get the pdf displayed
correctly in IE.

If you method is a post, according to the spec
http://www.w3c.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3 and if IE
warn if form is redirected is checked in the advanced setting , the browser
should not re-direct but must warn you before the redirection. On my IE ,
this is not a case, using Network Monitor , a Get to get the pdf is issued
but did not complete(about 30 tcp frame returned from IIS) the full
download of the pdf file, as a result the acrobat reader will issue an
error message and display a blank page.
Since IE issues the a get when it received the Http 302 after the post
method, I figure out that if the PDF file is small enough, it will not have
the error, so I use a 5K PDF and it confirms my observation. So my
conclusion is that it's a bug in IE.

By the way, Mozilla 1.0/Netscape 6.2 do not seems to be have this problem
with post or get methods.

Hope this is a correct observation :-). Time to sleep after spending
somtime looking at the Http packets :-(.

Best Regards,
Hun Boon Teo
03:09AM (GMT+0800)
12/07/2002
>From Singapore

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to