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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -