webb315 has asked for the wisdom of the Perl Monks concerning the following question:
Any little help will also b appretiated!function curl($a,$b,$c,$d,$e){ $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => $a, CURLOPT_RETURNTRANSFER => $b, CURLOPT_COOKIE => $c, CURLOPT_HEADER => $d, CURLOPT_NOBODY => $d, CURLOPT_CUSTOMREQUEST => ($e)?"POST":"GET", CURLOPT_POSTFIELDS => $e ) ); $g = curl_exec($ch); curl_close($ch); return $g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with curl...
by Corion (Patriarch) on Jul 12, 2008 at 15:41 UTC | |
|
Re: Help with curl...
by jettero (Monsignor) on Jul 12, 2008 at 15:23 UTC | |
|
Re: Help with curl...
by swampyankee (Parson) on Jul 12, 2008 at 15:18 UTC |