l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2005 May 08 12:30

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] browser and mimetypes (I think)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] browser and mimetypes (I think)

On Sun, May 08, 2005 at 10:56:54AM -0400, Peter Jay Salzman wrote:
> There's an URL to a pdf download of an article published by Optics Letters.
> I don't think anyone can access this because I'm using a Princeton
> University proxy (and Princeton has a subscription to this journal), but the
> URL is:
>    http://ol.osa.org/ViewMedia.cfm?id=68550&seq=0
> It doesn't look like a pdf.  I tried and tried to get the pdf to download
> and display on Firefox on Linux.  I think perhaps it downloads OK but
> Firefox doesn't know what to do with it, since it's a "cfm" file, whatever
> that is, not a pdf file.

'cfm' probably means it's a Cold Fusion document, but that's irrelevant
to your problem, I think.  The problem likely lies with what
content-type headers the document is spitting out before it delivers the
actual pdf.

A couple of things to try:
1) HEAD the document and see what headers are being sent.  Then, fiddle
   with Firefox until it does "the right thing" when it see's those
   headers.  In Debian, HEAD is part of Perl's LWP package (libwww-perl)
   As an aside, it includes other handy tools such as, GET and POST.

2) Check your browser cache for an appropriately sized file and
   mv/rename it to .pdf.  Note, that there may be extraneous stuff
   before the actual pdf data.  The PDF's I've looked at all start with
   the string "%PDF-n.n" where 'n' appears to be a version number.
2) try something like wget or curl and see if they're able to download
   the document directly.

Hope that at least provides some ideas for you to try.

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.