cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Post File to HTTPS via cURL at command line

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 14 Jun 2005 23:51:32 +0200 (CEST)

On Tue, 14 Jun 2005, Amy Petri wrote:

> I don't know if I am supposed to supply the user name and password this way
> - it just seemed the easiest way to send it.

Well, it would only be the right way if sending auth this way is what the
remote site expects.

> I put the braces in the URL because I need to login to the initial site and
> post the file to the /incoming/ directory. So it is quite possible I put in
> incorrect syntax. ??

Uh, all you get with that command line is a single post to the /incoming/
directory. If you need to do two requests, then you need to do it differently.

> I have posted and recorded using LiveHTTPHeaders. Since I am unfamiliar
> with that utility can you point me in the right direction to 'converting' it
> to cURL?

I don't know of any such guide.

If you would give us a busload of more details of the site, the HTML and what
the server responds (or plainly from the livehttpheader trace), we might be
able to give you better and more accurate advice.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-06-14