How to make POST request with a file as an attribute? -
i'm trying make post request below url response
http://ogre.adc4gis.com/convert
following param:
upload
- file being uploaded
my file example.zip
curl --request post 'http://ogre.adc4gis.com/convert' --data "upload=example.zip"
i tried above command, response not correct.
how post file name upload
param in above url?
please use following format,
curl -x post -f "upload=@/users/testuser/downloads/us20070254007_20071030.pdf" http://ogre.adc4gis.com/convert
note: please make sure using curl 7.54.0 @ least.
Comments
Post a Comment