cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Using ICQ sms system

From: beshoo <beshoo_at_beshoo.com>
Date: Sun, 9 Feb 2003 04:17:36 +0300

hi :
i like to yse ICQ sms system in my site
i think by using cURL "POST" and COOKIE command i will make it
see with me :) Please the coding section :

<?php
// My var look like ICQ COOKIE
$userandpass="karma2_uin=175489703;karma2_data=ED1D444E9A26346745FEF74E1E1E9981AA3893418D5D5D29668E9054AD2D09CCB6C8F671523DF8EC77E164423657446C9CA4629921C818EC7B284B7706A9C0440F2DA8E262080E22502D1611370CDC4CE811A89B8EA00438CD9B9B4352E2255B65A33C1FDD0630B59F8D37E502C526DA8F2C3014E87AE257;karma2_rem=1;karma2_sdata=0";
// post var
$action="country=963&carrier=94&tophone&tophone=487770&msg=hihihihihihih";
// the url
$url='http://web.icq.com/sms/send_msg_tx/1,,,00.html';
$ue='Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)';
// cURL code
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_USERAGENT, $ue);
curl_setopt ($ch, CURLOPT_COOKIE, $userandpass);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $action);
$result=curl_exec ($ch);
curl_close ($ch);

?>

but wheni test it i have an empty page withe this code :

<!-- Vignette StoryServer 5.0 Fri Feb 07 21:15:04 2003 -->

0

yes with " 0 "
Whay i have that and can i use the ICQ COOKIE file that thay made it in my COOKIE folder ?

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-02-08