cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Download from Url malformed?

From: antispammbox-debian <antispammbox-debian_at_yahoo.it>
Date: Thu, 14 Aug 2014 12:42:25 +0200

> Message: 6
> Date: Thu, 14 Aug 2014 11:26:57 +0200 (CEST)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: the curl tool <curl-users_at_cool.haxx.se>
> Subject: Re: Download from Url malformed?
> Message-ID: <alpine.DEB.2.00.1408141125000.13430_at_tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Thu, 14 Aug 2014, antispammbox-debian wrote:
>
> Hello!
>
> Please note that the curl-library mailing list is more suitable for
> libcurl
> stuff. This list is for discussing the curl command line tool.
>
>> I trying from malformed? Url with:
>> CURL *curl_handle;
>> FILE *pagefile;
>> curl_global_init(CURL_GLOBAL_ALL);
>> curl_handle = curl_easy_init();
>> curl_easy_setopt(curl_handle, CURLOPT_URL, Linkout);
>>
>> But donwload fails!
>
> What libcurl version on what platform?
>

Windows and Curl -from: C:/MinGW/include/curl/curlver.h - "7.31.0"
C:\MinGW\bin>curl --version
curl 7.31.0 (i386-pc-win32) libcurl/7.31.0 OpenSSL/1.0.0k zlib/1.2.8
libidn/1.18
 libssh2/1.4.3 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s
rtmp
rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN Largefile NTLM SPNEGO SSL SSPI libz

>> Is possible download from url like this:
>> http://www.aeiou.it/aeiou-gis/FrameTelecamera?tlc=33&tipo=F&ids=2f8d51e3&index=2

> Yes it is.
> / daniel.haxx.se

> Fails exactly how?

* Adding handle: conn: 0xb9b1c8
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0xb9b1c8) send_pipe: 1, recv_pipe: 0
* About to connect() to www.aeiou.it port 80 (#0)
* Trying 193.111.71.146...
* Connected to www.aeiou.it (193.111.71.146) port 80 (#0)
> GET /aeiou-gis/FrameTelecamera?tlc=36&tipo=F&ids=37f48b08&index=1 HTTP/1.1
Host: www.aeiou.it
Accept: */*
< HTTP/1.1 302 Moved Temporarily
< Date: Thu, 14 Aug 2014 10:31:41 GMT
* Server Apache is not blacklisted
< Server: Apache
< X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA
date=2
00710221139)/Tomcat-5.5
< Cache-Control: no-store, no-cache, must-revalidate
< Location: http://www.aeiou.it/aeiou-gis/images/noaccess.gif
< Content-Length: 0
< Vary: Accept-Encoding,User-Agent
< Content-Type: text/plain
< Content-Language: it
<* Connection #0 to host www.aeiou.it left intact

Thanks

Regards

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-08-14