Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cURL

Status
Not open for further replies.

savoyesmith

Programmer
Jul 26, 2008
3
US
Hi,
My friends site has a form processed with Perl. I need to send the post data to a remote email server.

I have cURL working in PHP but i don't know how to do it in Perl. Does anyone know what I need to do?

Basically i should init cURL, then set the URL where to sent the data, then set the data, and execute.
But i am not familiar with Perl.
Thanks.

Here is my cURL in PHP
$post = "username=fakename&password=fakepw&email=abc@xyz.c om";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$response_code = curl_exec ($ch);
curl_close ($ch);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top