Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php file_get_contents follow redirect

$context = stream_context_create(
    array(
        'http' => array(
            'follow_location' => true/false
        )
    )
);

$html = file_get_contents('http://www.example.com/', false, $context);

var_dump($http_response_header);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #follow #redirect
ADD COMMENT
Topic
Name
2+2 =