Skip to content
/ browser Public

Lib that returns headers to simulate a browser

License

Notifications You must be signed in to change notification settings

crawly/browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser

Lib that returns headers to simulate a browser

  • User-Agent
  • Accept-Language
  • Accept
  • Accept-Encoding
  • Connection
  • Accept-Charset
  • Pragma
  • X-Requested-With
  • Upgrade-Insecure-Requests

Install

composer require crawly/browser

Usage

$browser = new Browser();
$headers = $browser->getHeaders();

Additional Headers

$browser = new Browser();
$headers = $browser->getHeaders([
    'Referer' => 'http://test.org'
]);

About

Lib that returns headers to simulate a browser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages