savoyesmith
Programmer
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);
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);