cURL / Mailing Lists / curl-library / Single Mail


Re: download an URL that is in an iframe

From: Dan Fandrich <>
Date: Wed, 25 Jan 2012 16:06:45 -0800

On Wed, Jan 25, 2012 at 09:05:05PM +0000, rt wrote:
> I like to extract from a web-page a part with specific data, that is displyed
> in an iframe,
> The exemplary Javascript code-line is shown below:
> <div id="iframe"><iframe id="iframeK" name="iframeK" src="
> locale=de" scrolling="no" width="940" height="12000" frameborder="0"></iframe>
> </div>
> I adapted the demo example:
> curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
> if(curl) {
> curl_easy_setopt(curl, CURLOPT_URL, "");
> ....
> but I assumdd the dynamic nature or https cause problems. So far I have not
> found an answer in a blog
> hence my query here.

I don't actually see a query in your message. Are you experiencing a
problem with this code? What is the nature of the problem? The technique
you are using looks generally correct (although, the value for
CURLOPT_FOLLOWLOCATION must be a long, not an int).

>>> Dan
List admin:
Received on 2012-01-26