cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: File Upload

From: <Jim.Young_at_cerner.com>
Date: Mon, 25 Jan 2010 09:25:16 -0600

>I am new to curl command line tool. Can some suggest that if we have uploaded file through command line tool, how can we verify same with the help of curl >that file is uploaded successfully or not.

What I do is the following:

1. I verify that the exit status from Curl for the upload was 0

2. I have curl print out the file upload size (-w "%{size_upload}\n") and verify that it's the same as the size of the file on my system.

This is all running on an IBM AIX (UNIX) system and has worked very well for me. Curl either works or my shell script catches the problem and notifies me.
Jim Young

----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.

-------------------------------------------------------------------
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 2010-01-25