cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Runing libcurl in Qt 4.8.4: No ouput result in console mode.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 24 Jun 2013 17:20:41 +0200 (CEST)

On Mon, 24 Jun 2013, Olivier Austina wrote:

> curl_easy_setopt(curl, CURLOPT_URL, "http://www.exemple.com");

The HTTP response from www.example.com only returns headers, and your code
didn't show any headers. The response is a 302 and a Location: redirect but
your code didn't ask libcurl to follow the redirect!

CURLOPT_VERBOSE helps you figure out the first part. CURLOPT_FOLLOWLOCATION
helps you follow redirects.

curl-library is the correct mailing list for libcurl issues!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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 2013-06-24