use curl to upload a file via HTTP post

Hi there,

I’ve used curl before to upload and download files but this time I need to do it via HTTP post.

I don’t fully understand how to do this and was hoping somebody could help?

here is what I currently have:

curl '-d Username=myusername -d OrderItem=12345678 -d @/path/to/afile/IMG_1598.zip' http://awebaddress.com/somewhere/to/upload/ZipImages.aspx?

Username and OrderItem are variables I’m told I need to post along with a zip file that I want to upload.

Any help is gratefully appreciated.

Thanks,
Nik