$fp = fsockopen ("196.36.199.193", 80, $errno, $errstr);
if (!$fp)
echo "<b>".$errstr."</b>".($errno)."<br>\n";
else
{
fputs($fp, "GET username=a.owen@arcade.ch&password=afcnk051
HTTP/1.0\n\n"
while (!feof($fp))
{
echo fgets ($fp,128);
}
fclose ($fp);
}
i get this error:
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Wed, 25 Apr 2001 07:33:40 GMT Location: Connection: Keep-Alive Content-Length: 173 Content-Type: text/html Expires: Wed, 25 Apr 2001 07:33:40 GMT Set-Cookie: mtnsms%2Ep%2E2=color=0&cn=a%2Eowen%40arcade%2Ech&akey=; expires=Mon, 25-Apr-2011 07:33:40 GMT; domain=.mtnsms.com; path=/ Set-Cookie: mtnsms%2Et%2E2=skey=969E5AB6%2D278B%2D4D64%2D8ED7%2D59296107715C; domain=.mtnsms.com; path=/ Cache-control: private
Object Moved
i think it's a problem with the cookies
could somebody help me? andreas owen
aowen@arcade.ch
if (!$fp)
echo "<b>".$errstr."</b>".($errno)."<br>\n";
else
{
fputs($fp, "GET username=a.owen@arcade.ch&password=afcnk051
HTTP/1.0\n\n"
while (!feof($fp))
{
echo fgets ($fp,128);
}
fclose ($fp);
}
i get this error:
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Wed, 25 Apr 2001 07:33:40 GMT Location: Connection: Keep-Alive Content-Length: 173 Content-Type: text/html Expires: Wed, 25 Apr 2001 07:33:40 GMT Set-Cookie: mtnsms%2Ep%2E2=color=0&cn=a%2Eowen%40arcade%2Ech&akey=; expires=Mon, 25-Apr-2011 07:33:40 GMT; domain=.mtnsms.com; path=/ Set-Cookie: mtnsms%2Et%2E2=skey=969E5AB6%2D278B%2D4D64%2D8ED7%2D59296107715C; domain=.mtnsms.com; path=/ Cache-control: private
Object Moved
i think it's a problem with the cookies
could somebody help me? andreas owen
aowen@arcade.ch