Created
February 2, 2020 15:00
-
-
Save benemohamed/8adb23fc804bbd960200fc25509e6e35 to your computer and use it in GitHub Desktop.
stream context exmple header
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 | |
$opts = [ | |
'http' => [ | |
'header' => "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/79.0.3945.79 Chrome/79.0.3945.79 Safari/537.36\r\n" . | |
"Authority: www.name.me\r\n" . | |
"Cache-Control: max-age=0\r\n" . | |
"Upgrade-Insecure-Requests: 1\r\n" . | |
"Sec-Fetch-User: ?1\r\n" . | |
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n" . | |
"Sec-Fetch-Site: same-origin\r\n" . | |
"Sec-Fetch-Mode: navigate\r\n" . | |
"Referer: https://www.name.me/?__cf_chl_jschl_tk__=cd4ad7457d161b29a32fa1ec167ad7418ad3f554-1580654915-0-AYYtZL4qU7iFfAmSLD_dXA1msFcUbeDmBCai1nOpm9cOWnHboRfl-B9WNjpTjcKdw-8lJ8Z1jMtBXFqcG-HDev01NpJGVGkRnNMZSWzsxDxuJ1B_vsUGgvWsrQ7P7jhlF4Vd9pA7pJL1wTVKqG-xKyCYMkRrCmXio1f2DSbBp1shOTIBNoz_spCJoXGUviwwDIzEysp5lGOtNklA0B65HBxkv7GdW1ECfAFXQB_acKhmtra3HOsjjBFFVffsw0rxUJMnngu9gQbgsiUTwSYrC4Y\r\n" . | |
"Cookie: __cfduid=d1fa67a893a703c2325359db9cad63b311580644085; cf_clearance=c6b7a0f8a217ef0455df5526f0e3cfbf3d15454f-1580654920-0-150; XSRF-TOKEN=eyJpdiI6IjRqb1pkQmlTaGhiMGk0NjZmTFl1c3c9PSIsInZhbHVlIjoiUlZLcjlQYUw1N2M3cUwrTnhOM3VoV0tBN3VKUHFCU29iSnNSSXdhY1wvTkxVQWduVHhObjZ0VklZVUJ2ejk3dDhIWkpJdjAzaURTeXFKS3J3MDJoUVV3PT0iLCJtYWMiOiI2MjgyNjJkNjA3NzUxMzE0ZDYyZjgzZmFiMWUwOTlmMTU5MmU3NWM1Nzk0ZjQyYjJmZTUyMjQwNmI2NjgzZDIzIn0%3D; laravel_session=eyJpdiI6IktOTHhoekFGYXk0ZnZsNjdmSmFXd1E9PSIsInZhbHVlIjoiSys1cTkzVU5DTmJvKzVrblRmOXNuRTdNSmVmb1JQKzVtWFwvRkVRejZRMzlRMFlFOHB5ZGhNOHc4bHRTcHRaZU9DOVNmQ3d5cHpMT1JMZXNvdEo2b0V3PT0iLCJtYWMiOiJmYWNhMGY3ZWYzZGQxZGY2N2QxOTMzNDU2NjExNGM4Mjk5ZDdhY2M5NDVhNDdhMzVlMmNlODllZGMxYTFhZTljIn0%3D\r\n" . | |
"Accept-Language: en-US,en;q=0.9,ar;q=0.8,es;q=0.7,fr;q=0.6\r\n" . | |
"Accept-Encoding: gzip, deflate\r\n", | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment