-
Notifications
You must be signed in to change notification settings - Fork 327
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
Implementation of external requests in Minion Task #678
Comments
Minion_Task work in CLI, it`s not HTTP! |
@WinterSilence has misunderstood your problem. This is about sending HTTP requests to some other URL from a Minion_Task, not receiving them. Unfortunately you haven't given enough information for us to help you:
Also I would strongly support @shadowhand's advice on your other ticket that Kohana's external request / curl code is not very robust and it would be much better if you used Guzzle or another library designed specifically for making HTTP requests. |
@WinterSilence I'm trying to make an outside inquiry From inside the Mini Task
|
@entermix sorry you've not answered my questions: What happens if you use exactly the same What is the URL you're requesting? Is |
@acoulton thank you so much! The problem was really in the URL, thanks again! |
Hello everybody! When the external request, for example:
$request = Request::factory('http://example.com/post_api') ->method(Request::POST) ->post(array('foo' => 'bar', 'bar' => 'baz'));
I get an error:
Request_Exception [ 0 ]: Error fetching remote /sys/send.php [ status 0 ] Failure when receiving data from the peer ~ SYSPATH/classes/Kohana/Request/Client/Curl.php [ 102 ]
Why is that? file_get_contents () function works without problems
The text was updated successfully, but these errors were encountered: