Jump to content

fsockets - www.domain.com:2095/foldername


doni49

Recommended Posts

Yes I tried everything I could think of.

 

I'm using the HTTPClient class--when I look through the class, I see that it's using fsockets to make the connection.

 

I've tried both of the following.

$hc = new HttpClient ("www.mydomain.com/foldername/",$port="2095");

$hc = new HttpClient ("www.mydomain.com",$port="2095/foldername/");

 

This is the portion of the HTTPClient class that creates the new object.

    function HttpClient($host, $port=80) {
        $this->host = $host;
        $this->port = $port;
    }

 

And this is the portion of the class that actually attempts to make the connection

    if (!$fp = @fsockopen($this->host, $this->port, $errno, $errstr, $this->timeout)) {

 

It returns a 404 error.  With either method that I've tried.

 

But when I visit this page in my web browser, the page loads fine.

www.mydomain.com:2095/foldername/

Well I've continued to research this.  I installed LiveHeaders extension for firefox and was able to examine the headers that the pages send/receive.  My script succeeds at getting the page.

 

So I went back and looked at the headers when I access the page directly (not using my script) and it seems to load the page (the one that I've been trying to access) and then loads a DIFFERENT page--it's this second page that appears in my browser and I don't even see the first one.  I'm having trouble figuring out how to access this second page.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.