Cookie: uin=".$uin."; sms_country=".$prefix."; KarmaService1=Yes; uin=".$uin.";
sms_country=".$prefix."; KarmaService1=Yes
uService=1&uLogin=".$uin."&uPassword=".$passw."&x=0&y=0";
$remote
=
fsockopen
("web.icq.com", 80, &
$errno
, &
$errstr
, 30);
global
$remote
;
global
$post
;
fputs
(
$remote
,
$post
);
while
(!
feof
(
$remote
)) {
$htmlreply
.=
fgets
(
$remote
,120); }
//UNCOMMENT FOR OUTPUT: echo "".htmlspecialchars($htmlreply)."";
fclose(
$remote
);
//****************************************************************\//persoonlijke
cookie uit de inlogpage halen
// EN: fetch personal cookie from login page
$splited
= split("\n",
$htmlreply
);
$cookies
=
$splited
[3];
$cookies
=
str_replace
("Set-Cookie: KarmaLogin=","",
$cookies
);
$cookies
=
str_replace
("; path=/","",
$cookies
);
$cookies
=
str_replace
("\n","",
$cookies
);
//UNCOMMENT VOOR OUTPUT: echo $cookies;
if
(
strlen
(
$prefix
) == 2) {
$contentprefix
= ' '.
$prefix
; }
else
{
$contentprefix
=
$prefix
; }
$charcount
= (160-
strlen
(
$message
));
$contentlength
= ( 1561+
strlen
(
$message
)+
strlen
(
$charcount
)+
strlen
(
$phonenumber
)+
strlen
(
$prefix
)
);
//****************************************************************\//Verzendpagina
openen met de opgehaalde cookie
// EN: open send page with fetched cookie
$htmlreply
="";
$post
='POST http:
//web.icq.com/sms/send_history/1,,,00.html HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint,
application/vnd.ms-excel, application/msword, */*
Referer: http:
//web.icq.com/sms/send_session/1,,,00.html?prefix=+'.
$prefix.'&carrier=&tophone='.$phonenumber.'
Accept-Language: nl
Content-Type: multipart/form-data; boundary=---------------------------7d12442eab4
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
Host: web.icq.com
Content-Length: '.$contentlength.'
Proxy-Connection: Keep-Alive
Pragma: no-cache