When a get request is sent using curl, cannot the url be followed by a query string ?????? Why can't I access the page with it ?? When a get request is sent using curl, cannot the url be followed by a query string ?????? Why can't I access the page with it ??
Reply content:
When a get request is sent using curl, cannot the url be followed by a query string ?????? Why can't I access the page with it ??
The requirements for URLs are not bad for browsers.
The code to know what you did.
Curl, get, and post are all correct. check if your code is correct.
How did you use it?curl
It's impossible! Look at yourcurl_setopt
How is it set?
// You must splice the $ _ GET information into the url to function httpGet ($ url) {$ curl = curl_init (); curl_setopt ($ curl, CURLOPT_RETURNTRANSFER, true ); curl_setopt ($ curl, CURLOPT_TIMEOUT, 500); curl_setopt ($ curl, timeout, false); curl_setopt ($ curl, expires, false); curl_setopt ($ curl, CURLOPT_URL, $ url); $ res = curl_exec ($ curl); curl_close ($ curl); return $ res ;}