cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Upload Misbehaving

From: von <vb_nov_at_yahoo.com>
Date: Wed, 7 May 2008 15:26:54 -0700 (PDT)

Hi Daniel,
   
  See my replies below

Daniel Stenberg <daniel_at_haxx.se> wrote:
    On Wed, 7 May 2008, von wrote:

> curl -o c:\temp\login.out -u username:password -T c:\temp\file2upload.log
> securedURL -k -b FDX securedURL/cookie.dat -0 -v

So you want to upload that file to both these URLs?
   
  Ok, I got confused about the cookie option. so I removed it and this is how my script goes:
  curl -o c:\temp\login.out -u username:password -T c:\temp\test.txt theURL -k -b FDX -0 -v
  
* About to connect() to theURL port 443 (#0)
* Trying theIPAddress... connected
* Connected to theURL (theIPAddress) port 443 (#0)
* Server auth using Basic with user 'username'
> PUT /test%2Etxt HTTP/1.0
> Authorization: Basic ZmdwX3Bzb2Z0OjFBbWVyaWNh
> User-Agent: curl/7.18.1 (i386-pc-win32) libcurl/7.18.1 OpenSSL/0.9.8g zlib/1.2
.3
> Host: theURL
> Accept: */*
> Content-Length: 3
>
} [data not shown]
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 3 0 0 0 3 0 0 --:--:-- 0:00:03 --:--:-- 0<
HTTP/1.1 200 OK
< Date: Wed, 07 May 2008 22:22:20 GMT
< Server: SecureTransport/4.7
* Added cookie FDX="3049572f4a647547555965526f68524253566e5353513d3d" for domain
 theURL, path /, expire 0
< Set-Cookie: FDX=3049572f4a647547555965526f68524253566e5353513d3d; path=/; Secu
re
< Accept-Ranges: bytes
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Features: CHPWD;RTCK;STCK;ASC;DNDISP
< Connection: close
< Content-Type: text/plain; charset=UTF-8
<
{ [data not shown]
* SSLv3, TLS alert, Client hello (1):
{ [data not shown]
  0 37 0 34 0 3 10 0 --:--:-- 0:00:03 --:--:-- 122*
Closing connection #0
* SSLv3, TLS alert, Client hello (1):
} [data not shown]
===================================

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