nategood / httpful

A Chainable, REST Friendly, PHP HTTP Client. A sane alternative to cURL.
MIT License
1.74k stars 298 forks source link

localhost #263

Closed gjenkins19 closed 4 years ago

gjenkins19 commented 6 years ago

I can reach an endpoint (http://localhost/remote/users) with Chrome and Postman, but not with httpful. I can debug all the way to the curl call in httpful, but the debugger loses it at that point, so no more information. With no debugger, it just completes with no response.

Code => $url = "http://localhost/remote/users"; $response = \Httpful\Request::get($url)->send();

nategood commented 6 years ago

Does 127.0.0.1 work? Are you running your code in a VM? What happens when you use curl -v http://localhost/remote/users from command line? Without more information, can't really confirm this as an HTTPful bug.