/ Published in: PHP

Sends a request to a supplied path for a given host. It can send either a GET or POST request and can pass parameters.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function send_http_request($host, $path, $args, $method) { $output = <<<END $method $path HTTP/1.0 Host: $host User-Agent: PHP-script Content-Type: application/x-www-form-urlencoded Content-Length: $params_length $params END; global $logger; $logger->debug($output); { return $result; } return false; }
Comments
