cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: download an URL that is in an iframe

From: Dan Fandrich <dan_at_coneharvesters.com>
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="https://bla.bla.ch/?
> 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, "https://bla.bla.ch/?locale=de");
> ....
>
> 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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-26