curl-library
Re: CURLINFO_REDIRECT_URL
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 25 Jul 2008 20:15:30 -0700
Date: Fri, 25 Jul 2008 20:15:30 -0700
On Fri, Jul 25, 2008 at 09:04:46PM -0600, isaac_at_newcyberian.com wrote:
> With the following codes I was trying to capture the supposedly redirected
> url. But I got some garbage in the character string instead. What did I
> do wrong? Thanks!
[...]
> char new_url[1024];
> curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &new_url);
The man page says to pass a pointer to a char pointer--here you're passing
a pointer to an array.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-07-26