The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Other Web Sites open up and connect without any problems, giving back the expected 200 OK message, yet Freeola hostes sites send back a 404 Error message for every Page under my Domains.
Is this a restriction on Freeola accouts, whereby other sites can't connect to them via the PHP fsockopen(); function???
Got rid of one, added the Host: back again, and it seems to be working :)
*fingers Crossed*
Thanks for your help.
Strange.
$Host = "www.abcsoftware2000.co.uk";
$Page = "index.htm";
@ $fp = fsockopen("$Host", 80, &$ErrorNo, &$ErrorDesc, 10)
or
die("
Connection to $Host$Page failed.
\n\n\n");print "Trying $Host
";
print "Trying to get $Page
\n";
fputs($fp, "HEAD /$Page HTTP/1.0\nHost:www.abcsoftware2000.co.uk\n\n");
print fgets($fp, 1024);
fclose($fp);
Just picked a freeola hosted site at random there from freeola's customer sites list. And running that gives me...
Trying www.abcsoftware2000.co.uk
Trying to get index.htm
HTTP/1.1 200 OK
if leave out the host field I get
Trying www.abcsoftware2000.co.uk
Trying to get index.htm
HTTP/1.1 404 Not Found
> HEAD /index.php HTTP/1.0\nHost:www.haignet.co.uk\n\n
I get the result of a 'Bad Request' with this one.
Trying without the http:// in the address, I still get the the 404 Error message.
Rob, I don't know jack about Proxy stuff :) Even though I probably should. What do you mean by a public proxy??
All I know is other Web Sites I tried to conenct to, even these Chat Forums, bring up a '200 OK' message, where as any Freeola hosted site still are not found.
You should really have
HEAD /index.php HTTP/1.0\nHost:www.haignet.co.uk\n\n
Forgotten why you need the host tag, same vague memory out it being because of servers hosting several domains or something like that.
Also, not really sure if fsockopen will like you passing http://www.haignet.co.uk as opposed to www.haignet.co.uk
Just had a quick copy/paste of your code with those changes, certainly works for me on www.haignet.co.uk.
Here is the sample code:
$Host = "http://www.haignet.co.uk/";
$Page = "index.php";
@ $fp = fsockopen("$Host", 80, &$ErrorNo, &$ErrorDesc, 10)
or
die("
Connection to $Host$Page failed.
\n\n\n");print "Trying $Host
";
print "Trying to get $Page
\n";
fputs($fp, "HEAD $Page HTTP/1.0\r\n\r\n");
print fgets($fp, 1024);
fclose($fp);
Other Web Sites open up and connect without any problems, giving back the expected 200 OK message, yet Freeola hostes sites send back a 404 Error message for every Page under my Domains.
Is this a restriction on Freeola accouts, whereby other sites can't connect to them via the PHP fsockopen(); function???