Jump to content

grazzman

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Posts posted by grazzman

  1. Anyone know how to make Curl ignore a Certificate Miss match.... Example, my test site, grazzman.com has a securesites.net ssl certificate on it, so it will come up as a miss match. Any ideas would help.  Thanks

    [code]
    <?php
    $ch = curl_init();

    curl_setopt($ch, CURLOPT_URL,"http://wizards.orem.verio.net/database/webface/index.cgi");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch ,CURLOPT_SSL_VERIFYPEER, 1);
    $result=curl_exec ($ch);
    curl_close ($ch);
    ?>
    <?php echo $result; ?>

    [/code]
  2. Hey,

    I need to grab the results of a CGI script and dump it into a variable without HTML in the results. I'm looking to do kind of what lynxs would do with the following....

    lynx -dump -auth=user:pass https://somedomain.com/account.cgi?account=account123       

    I need to do this but without using lynx.... If anyone can just point me in the right direction, I should be able to google the rest... If I can get the page into a variable, then I can pars the information that I need out of the results. I'm not sure if fopen or if any of the f commands will do this. If anyone has any ideas, please let me know.

    Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.