Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php defined('BASEPATH') OR exit('No direct script access allowed');
- class Test extends CI_Controller {
- public function index(){
- echo $this->html();
- }
- private function html(){
- $c = curl_init('https://stackoverflow.com/questions/48512011/object-position-is-added-in-qs-stringify-result-express-nodejs-querystring');
- curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
- //curl_setopt(... other options you want...)
- $html = curl_exec($c);
- if (curl_error($c))
- die(curl_error($c));
- // Get the status code
- $status = curl_getinfo($c, CURLINFO_HTTP_CODE);
- curl_close($c);
- return $html;
- }
- }
- /* End of file Test.php */
- /* Location: ./application/controllers/Test.php */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement