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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fsockopen and cookies

Status
Not open for further replies.

andreas57

Technical User
Sep 29, 2000
110
CH
$fp = fsockopen ("196.36.199.193", 80, $errno, $errstr);

if (!$fp)
echo &quot;<b>&quot;.$errstr.&quot;</b>&quot;.($errno).&quot;<br>\n&quot;;
else
{
fputs($fp, &quot;GET username=a.owen@arcade.ch&password=afcnk051
HTTP/1.0\n\n&quot;);

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top