|
BratSadLove - 2016-05-01 16:08:05
Warning: require_once(curl/vendor/autoload.php): failed to open stream: No such file or directory in curl\examples.php on line 5
Fatal error: require_once(): Failed opening required curl/vendor/autoload.php' (include_path='E:\xampp\php\PEAR') in curl\examples.php on line 5
István Dombi - 2016-05-02 10:39:42 - In reply to message 1 from BratSadLove
Thank you for your report, I will check this as soon as I can, and upload the fixed file. :)
István Dombi - 2016-05-03 20:46:59 - In reply to message 1 from BratSadLove
Did you have composer installed in your computer, and have you copied the examples.php to your document root? I have tested it on a new host, and the 'curl/vendor/autoload.php' is not in the sourcecode manually, so it is some local problem. In this case, the curl propably your web directory, but it should to show as C:\xampp\htdocs\testlocal\vendor\autoload.php
Thank you,
Stephen
BratSadLove - 2016-05-03 21:02:54 - In reply to message 3 from István Dombi
Hi !
You can replace :
require_once dirname(__FILE__) . '/Curl/Helper.php';
require_once dirname(__FILE__) . '/Curl/Request.php';
This run very good, but not run http://tieudungtinchap.com/bang-du-tinh-so-tien-thanh-toan-vay-tin-chap-ngan-hang-vpbank ( VietNam site ) method Post
$request = new Webdice\Utilities\Curl\Request(
'http://tieudungtinchap.com/bang-du-tinh-so-tien-thanh-toan-vay-tin-chap-ngan-hang-vpbank',
array('returntransfer' => 1)
);
$request->post(array('thunhap' => 'Trên 8 triệu - 12 triệu', 'nhomkh' => 'Ưu đãi - 3% lãi suất'));
$request->debug();
exit();
Can you help me ?
Thank you !!!
István Dombi - 2016-05-04 16:24:17 - In reply to message 4 from BratSadLove
Hi,
The problem was that the site wait all of the form elements you post on it.
Here you are:
$request = new Webdice\Utilities\Curl\Request(
'http://tieudungtinchap.com/bang-du-tinh-so-tien-thanh-toan-vay-tin-chap-ngan-hang-vpbank',
array('returntransfer' => 1)
);
$request->post(
array(
'thunhap' => 'Trên 8 triệu - 12 triệu',
'nhomkh' => 'Ưu đãi - 3% lãi suất',
'tienvay' => '',
'thoigian' => 12,
'btnok' => 'Tính lãi suất'
)
);
echo $request->getResponse();
BratSadLove - 2016-05-04 18:37:45 - In reply to message 5 from István Dombi
Thank you !
István Dombi - 2016-05-04 18:48:59 - In reply to message 6 from BratSadLove
With pleasure :)
Can I ask you for some sentences about what do you think, what you missed from the class, what could be easier, and how would you rate? :)
Stephen
|