I need to send get a request to the URL test.ru/stop/search/{название} , also to test.ru/route/search/{название1}/{название2}/{название3}
How is this done if there is no name for the parameters?
What I'm trying to do:
$url = 'http://test.ru/stop/search/Москва' $headers = array ( 'Content-type: application/json', 'Authorization: Bearer ' . $this->access_token, ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $x = curl_exec($ch); Returns HTTP Error 400. The request URL is invalid.