-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find HTTP/Request2.php #11
Comments
Note that it works if I install http_request2 with PEAR. But I think Composer should be able to autoload it without having to use PEAR. |
This install and demo works for me. What version did you try to install? vagrant@vagabond:
pear/log suggests installing pear/db (Install optionally via your project's composer.json) |
I installed 0.5.0. |
It seems you have to add the following line to your composer.json to get HTTP/Request2 auto-loaded: (But that is just a workaround) |
I had the same problem, and found this workaround (the methods mentioned here haven't worked for me): |
I solved this by adding this line
before But then I ran into an issue with http now redirecting to https - and even manually changing to https in the config file it still had an issue (though that could potentially just be on my local dev machine). Realized it was probably just as easy to use the API directly as describe at https://wiki.openstreetmap.org/wiki/API_v0.6#API_calls |
HTTP_Request2 2.4+ no longer sets if (!class_exists('HTTP_Request2', true)) {
require_once 'HTTP/Request2.php';
} See also pear/HTTP_Request2#18 |
Hello,
I installed your library with Composer. I get this error when trying to run it:
Here is my code:
The text was updated successfully, but these errors were encountered: