[Chameleon-dev] [Bug 1678] New: [php_utils] server_data_manager.php still has a part that should use http client

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Thu Mar 8 02:53:49 EST 2007


http://bugzilla.maptools.org/show_bug.cgi?id=1678

           Summary: [php_utils] server_data_manager.php still has a part
                    that should use http client
           Product: Chameleon
           Version: 2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: bartvde at osgis.nl


In the testServer function:

Replace the following:

        // open a pointer to the input file
        if (!($fpIn = fopen($szOnlineResource, "r")))
        {
            // test failed
            $bReturn = false;
        }
        else
        {
            // test succeeded
            $bReturn = true;
            fclose( $fpIn );
        }


with:

        include_once(dirname(__FILE__)."/../http/HTTPClient.php");
        $oHTTPClient = new HTTPClient("", $this->nMaxExecutionTime);
        if ( $oHTTPClient->doGET($szOnlineResource) )
        {
          // test succeeded
          $bReturn = true;
        }
        else
        {
          // test failed
          $bReturn = false;
        }



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Chameleon-dev mailing list