Slurp an HTTPS site

  • tkdunn

    tkdunn - 2005-02-12

    I need a script to slurp an HTTPS site.  If anyone has done this (or is interested in writing it for me - $$) I'd definitely be interested.  I think this would be fairly simple for someone who knows what there doing - I don't . My host has Curl installed along with PHP 4.3.

    Any help would be appreciated...

    • herrberge

      herrberge - 2005-02-24

      You can do it with cURL:

      $c = curl_init('');
      curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
      $page = curl_exec($c);

      If you prefer snoopy and have problems to make the current version run with https there is an easier version for this:

      You dont need cURL externally. Make sure that cURL and openssl is enabled in your php-version.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks