On 09.09.2009, at 16:45, Tonyo wrote: > Thank you for your help. Thanks for your information!
> Actually, now I have this error message informing me that the file > does not exist. This error message is most probably a blatant lie, as you've shown with your curl command :) (See below for the fix for this error message.) > But if I run the following command : > curl -D - -o test.pdf -d collection_id=79dc1e4d199b863d -d writer=rl - > d command=download http://tools.pediapress.com/mw-serve/ > > I can have my pdf file and i get this result : > > % Total % Received % Xferd Average Speed Time Time > Time Current > Dload Upload Total Spent > Left Speed > 0 57 0 0 0 57 0 260 --:--:-- --:--:-- > --:--:-- 260HT > TP/1.1 200 OK > Server: nginx/0.6.32 > Date: Wed, 09 Sep 2009 14:31:23 GMT > Content-Type: application/pdf; charset=UTF-8 > Transfer-Encoding: chunked > Connection: keep-alive > Content-Disposition: inline; filename=collection.pdf Another (but probably unrelated) bug that has been pointed out by this output is that there's no Content-length in this response. I've fixed that in: http://code.pediapress.com/git/?p=mwlib;a=commit;h=770a1780efe7424aaa7f65e955bdcca966f86b76 > For information, my wiki is on shared hosting. So I can't launch this > command line directly on my server. i haven't got more idea what is > the problem. > > But may be you can have an idea of my problem? I don't know yet what the problem is, but I've applied a change to the Collection extension code, so that at least errors from cURL are not swallowed/hidden: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56130 Could you update the Collection extension and post the resulting error here? -- Johannes --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
