Skip to content
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

how to remove header server information but tag head not remove #20

Closed
aufa opened this issue Feb 2, 2014 · 2 comments
Closed

how to remove header server information but tag head not remove #20

aufa opened this issue Feb 2, 2014 · 2 comments

Comments

@aufa
Copy link

aufa commented Feb 2, 2014

I was try to get content of 1 site , but when I use normal method will be print the info of header server.
header

then i try to disable header the head sections is gone , or some content is gone...!
how to disable print get_info of the curl header?
and just opinion , by default on exec, the request header is not activate , and gave the new function for get or activate header.
thank you :)

@zachborboa
Copy link
Member

Hi @aufa. You may not be using the class correctly. You should not disable the header. The response is available in $curl->response. Here is an example.

<?php
require 'lib/Curl.class.php';

$curl = new Curl();
$curl->get('http://www.example.com/');
echo $curl->response;

@aufa
Copy link
Author

aufa commented Feb 3, 2014

hello all structure is true, but maybe about my cookies or my cached to request call back from the url thanks for the response :)
and btw I was request pulls on this link #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants