Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Request curl always return 404
vee
September 2014
---
This code works fine.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, '
http://localhost/test.php'
);
curl_exec($ch);
The result is phpinfo() page.
---
But this is not. It returns 404page.
$curl = \Request::forge('
http://localhost/test.php'
, 'curl');
$curl->execute();
$result = $curl->response();
Harro
September 2014
The cURL request driver does:
$ch = curl_init('
http://localhost/test.php'
);
curl_exec($ch);
which should be identical.
vee
September 2014
I cannot use \Request::forge('
http://localhost/test.php'
, 'curl'); ?
kenjis
September 2014
Your two codes should do the same thing. So very weird.
Why don't you see access log of Web server? Maybe you can find a clue.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
September 2014
kenjis
September 2014
vee
September 2014