failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
-
Where is you homepage and the pro version?
I test this source and got 404 error.$apiUrl = "https://myhost/api/get_nonce/?controller=user&method=register"; $response = file_get_contents($apiUrl); $array = json_decode($response, true); echo "<pre>"; print_r($array); $email="[email protected]"; $arrEmail = explode("@",$email); $username = $arrEmail[0]; $password = "66666666B"; $apiUrlRegister = "https://myhost/api/user/register/?username=".$username."&insecure=cool&display_name=".$username."&email=".$email."&nonce=".$array['nonce']."&user_pass=".$password; echo $apiUrlRegister; $response2 = file_get_contents($apiUrlRegister);
this code output
Array
(
[status] => ok
[controller] => user
[method] => register
[nonce] => ffeb5cf1e8
)Warning: file_get_contents(https://…@gmail.com&nonce=ffeb5cf1e8&user_pass=66666666B): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in test.php on line 14How to solve this problem?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found’ is closed to new replies.