Tag: header
Force Download Dialog with PHP using octect-stream
April 25, 2008
Use this code to force a download of any type of content with PHP header(“Content-type:application/octect-stream”); header(‘Content-Disposition: attachment; filename=filename_’ . date(‘Y-m-d’)…
Get URL Headers from Linux Command Line
November 10, 2007
Show the headers of an URL from the command line. This will need perl, lwp installed on the system. lwp-request…
301 Redirect using PHP
October 5, 2007
301 Redirect using PHP header (‘HTTP/1.1 301 Moved Permanently’); header (‘Location: ‘.$new_location);
Get URL Headers using CURL
September 28, 2007
Show the headers of an URL using Curl curl http://example.com -I
Recent Comments