cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Download from Url malformed?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 15 Aug 2014 14:16:32 +0200 (CEST)

On Fri, 15 Aug 2014, antispammbox-debian wrote:

> But donwload fails!

No it doesn't:

> < 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

That's a successful HTTP transfer.

There's no response-body though and it is a 302 redirect which you quite
likely want to follow to download the data that Location: points to. You can
use CURLOPT_FOLLOWLOCATION for that!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-08-15