Hi
I'm trying to download an xml file from a https server using curl on a Linux machine with Ubuntu 10.4.2
I am able to connect to the remote server with my username and password but the output is only "Virtual user <username> logged in".
I am expecting to download the xml file.
My output file is created with only the above line. I have tried using verbose and trace but can't see any issues. So I'm assuming I'm missing something in my command or I can't download the file with curl. Trying looking on the net but all the examples suggest I'm doing it right.
This is the command I'm using
curl -O --user username [servername]/file/to/get.xml
(removed credentials and server details for security. )
servername starts https://
This is what I get with verbose
.
.
.
-
SSL certificate verify ok.
- Server auth using Basic with user '****'
> GET /file/to/get.xml HTTP/1.1
> Authorization: Basic U0FQUElUb0FVU01BSUxTUlY6MWNQcFdmRGs=
> User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Host: [servername]
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Sun, 05 Feb 2012 19:45:52 GMT
< Server: SecureTransport/4.9.2
< Set-Cookie: FDX=784232524263497268494e425975512f45694d626b413d3d; path=/; Secure
< Accept-Ranges: bytes
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Features: CHPWD;RTCK;STCK;ASC;DNDISP
< Content-Length: 42
< Content-Type: text/plain; charset=UTF-8
<
Virtual user [username] logged in.
- Connection #0 to host [servername] left intact
- Closing connection #0
- SSLv3, TLS alert, Client hello (1):
Any help to understand what I'm doing wrong will be much appreciated.
Thank you!!