[Bug 1849] New: LayerAttributes.php uses file_get_contents instead of HTTPClient

View: New views
1 Messages — Rating Filter:   Alert me  

[Bug 1849] New: LayerAttributes.php uses file_get_contents instead of HTTPClient

by Bugzilla from bugzilla-daemon@bugzilla.maptools.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

           Summary: LayerAttributes.php uses file_get_contents instead of
                    HTTPClient
           Product: Chameleon
           Version: 2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: chameleon-dev@...
        ReportedBy: bartvde@...


So this won't work in environments where a proxy is needed to go outside.

The fix for function getWFSResource is something like:

    else
    {
        //$szXMLFile = file_get_contents( $szURL );
        // use the http client
        include_once(COMMON."/http/HTTPClient.php");
        $oHTTPClient = new HTTPClient("", 30);
        $szXMLFile = $oHTTPClient->doGET($szURL);
    }



------- 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.
_______________________________________________
Chameleon-dev mailing list
Chameleon-dev@...
http://lists.maptools.org/mailman/listinfo/chameleon-dev