Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

download html content from url php

$c = curl_init('https://yourURLhere.com');
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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #download #html #content #url #php
ADD COMMENT
Topic
Name
7+6 =