Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HTTP request with PHP
header('Content-Type: application/pdf');
header('HTTP/1.1 500 Internal Server Error');
header('HTTP/1.1 404 Not Found');
header('Content-Disposition: attachment; filename="awesome.docx"')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment