plainblack.com
Username Password
search
Bookmark and Share
View All Tickets
Downloading file using HttpProxy fails  (#2826)
Issue

The problem is that I cannot download a file from another server under these circumstances: 

* My site running ssl

* Proxied site does not seem to matter (tested both http and https) 

* Using Internet Explorer 6 (Mozilla works!)

* Rewrite URL:s set to "yes"

* The targeted file is a binary file - I've tested
.txt(ok)
.html(ok)
.doc(failed)
.pdf(failed)

 

At the non-webgui site there are a link to a pdf doc. When I open this I get a file download prompt and:

"Internet Explorer cannot download aaa.pdf from our.server.com

The file could not be written to cache."

This is an IE only error and I googled and found following:

"In SSL, Explorer does not like the Pragma: no-cache header. That was the problem"

So the Pragma: no-cache is set in Session/Style.pm

Snapcount :
"I think the discrepancy happens because proxy uses LWP to request the content and I'm guessing by default it sends that cache pragma in the header.  We could probably tell LWP not to do that"

I refer to support case: http://www.plainblack.com/plain_black_support/tricky-ssl-problem/ 

/Erik

Solution Summary
Comments
grnoc
0
1/3/2007 9:47 am

ALSO, When you fix this bug, please do something about the way http proxy handles large files.

Have it first find out how big the file is, then if its small do not change anything. BUT , if its a large file then you should store that in a temp file rather than in memory because its causing webgui and the entire server to seize and lock up. THANKS,

grnoc 

preaction
0
1/3/2007 1:43 pm

"Do something about the way HttpProxy handles large files..." is an RFE, and one that would be difficult to implement. Far better to set up a different apache instance.

The HttpProxy is not meant to allow an entire website to be used inside of a WebGUI style, at least not without some minor modifications.

As an aside, please keep threads on-topic. Even if it was a bug, your post is completely different from the first post (even though they share a symptom).

preaction
0
1/3/2007 1:46 pm

I could not reproduce this on IE7 using the following link:

http://demo.plainblack.com/demo1167851842_767/home/untitled

Please visit that link and tell me what you see.

That is proxying this file: http://demo.plainblack.com/demo1167851842_767/uploads/SW/FV/SWFV0DOuZGYqi61THU1QKQ/Chouchin-Reinensai-Lantern.gif 

erik.svanberg
0
1/4/2007 3:56 am

This is the case:

* Internet Explorer 6

1. HTTP -> HTTP - OK
2. HTTP -> HTTPS - OK
3. HTTPS -> HTTPS - FAILS

I cannot reproduce this on demo site since https is not active.

 /Erik

erik.svanberg
0
1/4/2007 3:57 am

Iget this kind of error as well:

The proxy hangs (httpd process) when I download files using HttpProxy (FF and IE 7).  This is not big files (max 1 mb) but still causes our server to peak at 99% cpu.

/Erik 

preaction
0
2/2/2007 1:02 pm

From what I've been reading out on the internet tubes, you're right that this bug seems to occur because of the "pragma: no-cache" HTTP header.

Since I can't figure out a good way to reproduce this, is there any way for you to give me the full HTTP response for the HTTPProxy request for the file?

Usually using `wget --save-headers <link that causing problems>` will work.

It might be possible to workaround that issue with IE.

Another thought: Can you reproduce on IE7?

preaction
0
2/2/2007 2:23 pm
Closing this until user replies, as per policy.
Details
Ticket Status Closed  
Rating0.0 
Submitted Byerik.svanberg 
Date Submitted2006-12-12 
Assigned To unassigned  
Date Assigned2010-09-02 
Assigned By 
Severity Critical (mostly not working)  
What's the bug in?  
WebGUI / WRE Version 7.2.3  
URLbugs/tracker/downloading-file-using-httpproxy-fails
Keywords
Ticket History
© 2010 Plain Black Corporation | All Rights Reserved