cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Curl + PDF Download

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 1 Jul 2004 08:24:35 +0200 (CEST)

On Wed, 30 Jun 2004, Sarah Mirza wrote:

> I want to download the pdf document from a webpage and store it in my
> database.
>
> http://v3.espacenet.com/pdfdoc?DB=EPODOC&IDX=WO03075629&QPN=WO03075629
>
> This is the page from which I want to pick up the document. Is there any way
> to do this ?

Yes, you create a curl handle, set the options and then download it.

If the server requires cookies or a login or similar you need to provide all
that first.

You'll find a few examples that might offer inspiration here:

         http://curl.haxx.se/libcurl/php/examples/

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-07-01