cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problem with form data

From: Clam Starick <boone8081064532_at_yahoo.com>
Date: Thu, 20 Mar 2008 20:40:04 -0700 (PDT)

I have changed my command line to
   
  curl.exe -location --output "affirm.txt" -F "userfile = @C:\Documents and Settings\Desktop\numbertest.bmp" "http://appsv.ocrgrid.org/tesseract/"
   
  cURL still returns data from the non-redirected site. Is there anything else I am missing?
   
  Thanks

  
Message: 5
Date: Thu, 20 Mar 2008 10:10:17 -0700
From: Dan Fandrich
Subject: Re: Problem with form data
To: curl-users_at_cool.haxx.se
Message-ID: <20080320171017.GA7456_at_coneharvesters.com>
Content-Type: text/plain; charset=us-ascii

On Thu, Mar 20, 2008 at 01:47:30AM -0700, Clam Starick wrote:
> I have been attempting to submit form data to http://appsv.ocrgrid.org/
> tesseract/ using the command line
>
> curl.exe --output "affirm.txt" -F "userfile=C:\Documents and Settings\Desktop\
> numbertest.bmp" "http://appsv.ocrgrid.org/tesseract/"
>
> Curl only returns data from the http://appsv.ocrgrid.org/tesseract/ website.
> Not the redircted site http://appsv.ocrgrid.org/cgi-bin/weocr/
> submit_tesseract.cgi with the result.
>
> Does anyone know what I am doing wrong?

Have you tried the --location option? And are you sure you don't want an
@ before your file name in the -F option?

>>> Dan

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Received on 2008-03-21