Daniel <[email protected]> writes:

>
> So the File is sent as "text/html" instead as "application/pdf".
>
> I never have problems to download pdf files, so it's not a problem of
> my browser (FF 3.6.12) I think.
>
> Saving the file to disk doesn't work, it can't be read as PDF.
>
> The only solution so far is download the file directly via
>
> curl -D - -o test.pdf -d collection_id=1234567890 -d writer=rl -d
> command=download http://tools.pediapress.com/mw-serve/

Both the pediapress server and our test wiki say it's application/pdf:

,----
| % curl -D - -o test.pdf -d collection_id=d7bd0d53ed2c6877 -d writer=rl -d  
command=download http://tools.pediapress.com/mw-serve/
|   % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
|                                  Dload  Upload   Total   Spent    Left  Speed
|   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     
0HTTP/1.1 200 OK
| Server: nginx/0.7.67
| Date: Mon, 29 Nov 2010 09:25:02 GMT
| Content-Type: application/pdf; charset=UTF-8
| Transfer-Encoding: chunked
| Connection: keep-alive
| Content-Disposition: inline; filename=collection.pdf
`----

,----
| % curl -D - -o test.pdf 
'http://simple.pediapress.com/w/index.php?title=Special:Book&bookcmd=download&collection_id=d7bd0d53ed2c6877&writer=rl&return_to=Main+Page'
|   % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
|                                  Dload  Upload   Total   Spent    Left  Speed
|   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     
0HTTP/1.1 200 OK
| Server: nginx/0.7.67
| Date: Mon, 29 Nov 2010 09:26:11 GMT
| Content-Type: application/pdf
| Connection: keep-alive
| X-Powered-By: PHP/5.2.5-3
| Content-Length: 40985
| Content-Disposition: inline; filename=collection.pdf
| 
| 100 40985  100 40985    0     0   176k      0 --:--:-- --:--:-- --:--:--  202k
`----

I don't know what's wrong.

Cheers
- Ralf

-- 
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to