programAngel Posted May 21, 2012 Share Posted May 21, 2012 Hi,something confusing me regard the http_get, lets say I want to do the following request:http://example.com?user=bob&password=passwordshould it look like?:Code:$result=http_get("http://www.example.com/", array("user"=>"bob","password"=>"password"), $info);or like:Code:$result=http_get("http://example.com?user=bob&password=password", , $info);I have read the manual:http://php.net/manual/en/function.http-get.php but I am still not sure what the options mean. Link to comment Share on other sites More sharing options...
Ingolme Posted May 21, 2012 Share Posted May 21, 2012 Pass the parameters in the URL. The options are for other things. Here's a list of the options that can be used: http://www.php.net/manual/en/http.request.options.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now