cURL / Mailing Lists / curl-users / Single Mail

curl-users

Troubles Posting...

From: Phippen, Neil <nphippen_at_mbari.org>
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.." http://134.89.12.106:8088/mer-app/login.jsp -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"

"http://134.89.12.106:8088/mer-app/upload.jsp?folderResourceName=%2Fusers%2Fneil%2Fpublic%

 2Fimages&folderDisplayName=Images&userFolderIndex=1"

--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

------------------------------------------------------------------------

Neil M. Phippen

Research Assistant

Monterey Bay Aquarium Research Institute

7700 Sandholdt Rd. Moss Landing CA 95039

E-mail: nphippen_at_mbari.org

Phone: (831) 775-1745

 
Received on 2006-06-07