Problem with downloads from php, works OK in IE browser

Author Message
Peter Harkness 01/11/2011 11:29 am
We have .iso files stored on our internal systems, they are referenced by urls such as:

http://intranet/library.php?view=retrieve_item&g2_itemId=16

When I click on this link in Internet Explorer I get a dialogue offering to save the file as jan2011.iso which is correct.

When OE pro processes this url it downloads the file but saves it with a filename matching the url, in other words it is saved as

"library.php?view=retrieve_item&g2_itemId=16" under the download tree instead of "jan2011.iso"

OE doesn't deem to be able to extract the file name in the way that Internet Explorer can.
Peter 01/12/2011 09:50 am
I think it relates to a "Content-Disposition" header which maybe OE Pro isn't picking up. Does OE pro process this header?

Thanks
Peter Harkness 01/12/2011 12:20 pm
OK, it works if I amend the project setting to download text files which I had unticked. I've read in other posts that in this case with the Content-Distribution OE will save with the correct filename and the text file will be a link. However I don't want to download the text files so can this be considered a bug. In the case of not downloading text files should OE not save as the correct filename and just skip the saving of the text link?
Oleg Chernavin 01/13/2011 02:40 am
Yes, it looks quite strange. Can you please revert the Project settings back to it was before (to reproduce the error) and send them to me? Just select it, press Ctrl+C on keyboard and paste to the forum message. You may change the URL and remove password (if any).

Please also excuse me for the late answer.

Best regards,
Oleg Chernavin
MP Staff
Peter Harkness 01/14/2011 04:48 pm
Tried 3 types to upload project. Forum says post will be moderated, have you received the details?
Peter Harkness 01/15/2011 03:50 am
Sure, here you go




[Object]
OEVersion=Pro 5.9.0.3284
Type=0
IID=7040
Caption=Intranet library
URL=http://intranet/archive/start.htm
MVer=5
Lev=1000001
Weekday=257
LimTSize=10000
LimNumber=5000
LimTime=100
SkipMedia=True
FTText.Exts=htmlhtmaspaspxjspstmstmlidcshtmlhtxtxttextxspxmlrxmlcfmwmlphpphp3
FTImages.Exts=gifjpgjpegtiftiffxbmfifbmppngipxjp2j2cj2kwbmplwf
FTVideo.Exts=mpgavianimpegmovflvfliflcvivrmramrvasfasxwmvm1vm2vvobsmilmp4
FTAudio.Exts=wavriffmp3midmp2m3uravocwmaape
FTArchive.Exts=ziparcgzzarjlhalayleirarcabtarpakacejarpdftgzexe
FTUDef.Exts=jscssssivbsdtdxslswfclassent
FTText.B=xoxooo
FTImages.B=xoxooo
FTVideo.B=ooxooo
FTAudio.B=ooxooo
FTArchive.B=ooxooo
FTUDef.B=ooxooo
FTOther.B=ooxooo
FTSizes=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0
NotIgnoreLogout=False
RSrvsBx=3
RFileEx=*log* x
RProt=255
LastStart=63:55:32:242:118:205:227:64:
LastEnd=187:152:43:49:119:205:227:64:
LastStarted=12/01/2011 17:12:33
LastEnded=12/01/2011 17:23:38
S200=134
S304=77
SAbr=806
SPar=199
SSav=134
SLast=200
SSiz=865495721
SMdf=79
SHTML=123
LFiles=211
LSize=865495721
Stopped=True
Flags=1
ApplyAllSubsts=True
ImgDim=0,0,0,0
ParseComplexScripts=True
ConvertRSS=True
IPAddr=-1662355282
LIndexed=False
IndexFiles=False
Oleg Chernavin 01/15/2011 04:45 am
I can't reproduce this. All I get is a message that "Images are disabled" when downloading that ISO file (I tested on another site with another file types, but this should be equal). This is incorrect wording and I changed it now.

However it is true that Text category should be enabled, because PHP extension is listed in File Filters - Text. Unfortunately, when deciding whether to download some link or not, Offline Explorer is unaware what link type it is. All it sees is the URL.

Oleg.
Peter Harkness 01/17/2011 05:29 am
Oleg,

I thought that if text downloading was disabled that text files such as html, php would still be downloaded and parsed but NOT saved to disk. So if I disable text files the php should still be downloaded (to look for other links) and then the real filename can be found and the file saved. Then the text file is discarded.

I want to download the iso files without hundreds of php files being saved to the disk also.
Oleg Chernavin 01/17/2011 09:45 am
This is so. I wish I could reproduce this myself to fix the issue. Is there some public site with such kinds of linking?

Oleg.
Peter Harkness 01/18/2011 08:28 am
No this site is internal only. Would header info from one of the pages be of any use?
Oleg Chernavin 01/18/2011 01:23 pm
I am afraid, no. I need to reproduce this on some real server. Maybe there are some similar public sites?

Oleg.
Peter Harkness 01/20/2011 09:05 am
Oleg,

I may be able to set up a small web server with a few pages and dummy files based on our intranet structure. It would be accessible to you. However I don't want to put the details in this forum. Can I pass the detail to you some other way?
Oleg Chernavin 01/20/2011 03:57 pm
Sure. I just sent an E-mail to the address you left in this forum.

Oleg.