Re: Streaming pdf with URLLib

2009-05-22 Thread Joel Goldstick
I think you misspelled 'Content-Disposition' Aahz wrote: In article <04eacd56-5293-4553-bdb3-ad2e8266c...@z7g2000vbh.googlegroups.com>, Scooter wrote: #!/usr/bin/python import urllib u = urllib.urlopen('https://myinternal.server/pdfs/pdfstreamer.aspx') print 'Content-type: application/pdf\n

Re: Streaming pdf with URLLib

2009-05-21 Thread Aahz
In article <04eacd56-5293-4553-bdb3-ad2e8266c...@z7g2000vbh.googlegroups.com>, Scooter wrote: > >#!/usr/bin/python > >import urllib > >u = urllib.urlopen('https://myinternal.server/pdfs/pdfstreamer.aspx') >print 'Content-type: application/pdf\n\n' ># print 'Content-type: application/x-msdownload;

Streaming pdf with URLLib

2009-05-20 Thread Scooter
I'm playing around with urllib, and httplib, trying to make something of a pdf proxy.I have a pdf that lives on an internal web server, and I would like to be able to stream it to my external server. (this is just a test for a bigger process. Yes I could just copy the pdf to the external box). I wa