cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Archives

Re: Curl returns exit code 18 for remote file

From: James B. Byrne <byrnejb_at_harte-lyne.ca>
Date: Wed, 3 Aug 2011 11:48:44 -0400 (EDT)

On Tue, August 2, 2011 17:15, Dan Fandrich wrote:
>
> With --head, you shouldn't be getting error 18 since there's no file
> transfer being done. Can you show the log for that case?
> Unfortunately,
> --ignore-content-length is ignored on FTP transfers, so it shouldn't
> make a difference one way or another.
>

Yes, I wrote too hastily. The error 18 seems to have disappeared
since adding the --head option to those cURL calls and the --output
/dev/null has the desired effect on the content length notice.
Although I cannot grasp the logic behind giving such notice to
stdout if that is all one expects to begin with.

Thank you.

-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB_at_Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-03

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET