Created
November 15, 2020 18:17
-
-
Save alfintechcomputer/7d38451e870009bd9fc907af288ba18e to your computer and use it in GitHub Desktop.
HTTP request with PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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