LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-05-2015, 05:14 PM   #1
atmos1234
LQ Newbie
 
Registered: May 2012
Posts: 6

Rep: Reputation: Disabled
Trying to upload image to image host with curl command line


Hi all,

Im trying to upload a pic to www.stooorage.com but i fail.. I tried to check all fields
with chrome // firebug but i cant seem to figure out the correct line. I hope someone could help me with this.. I could upload a file to another pichost.. but this one is not working on the same way..


I use the following code:


Code:
curl -v -X POST 'http://www.stooorage.com/' -H 'Referer: http://www.stooorage.com/' -A 'User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0' -H 'Content-Type: multipart/form-data' -F "file=@/home/ava.jpg" -F name="img[]" -F submit="Upload"

Last edited by atmos1234; 06-05-2015 at 05:16 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need a command line utility that will upload a file to a host Leb_CRX Linux - General 4 10-01-2007 12:35 PM
I need a command line image viewer/manager... branvu Linux - Software 1 02-25-2006 05:03 AM
Command Line Image Editing fractal_chaos Linux - Software 8 10-03-2005 05:33 PM
View image from command line? Rotwang Linux - General 1 03-22-2004 02:51 AM
Boot to different image from command line markb Linux - General 8 04-06-2003 08:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration