cURL / Mailing Lists / curl-users / Single Mail


Troubles Posting...

From: Phippen, Neil <>
Date: Wed, 7 Jun 2006 13:20:42 -0700

Hello All,


I am an Intern at MBARI for the summer, It was suggested to use curl to perform a few tasks we have to do, I'm trying to learn it quickly but am having trouble getting an image to post to an upload form:


I first login to the page with the call:


curl --dump-header headers -d "username=neil&password=***&submit=Log%20in.." -v -L


--This logs me into my application, now I would like to POST using a form found inside... the call I have given it is...


curl -v -L -b headers -d "file=/home/nphippen/Desktop/test.jpg&submit=Submit"



--trace-ascii /home/nphippen/Desktop/trace.txt


This doesn't give me errors but it certainly doesn't post the image...


Can anyone shed some light on the proper structure for making this sort of call?


Thank you very much in advance.




Neil M. Phippen

Research Assistant

Monterey Bay Aquarium Research Institute

7700 Sandholdt Rd. Moss Landing CA 95039


Phone: (831) 775-1745

Received on 2006-06-07