grazzman
-
Posts
27 -
Joined
-
Last visited
Never
Posts posted by grazzman
-
-
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
Curl and SSL
in PHP Coding Help
Posted
[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]