Skip to content

Instantly share code, notes, and snippets.

@Cosmologist
Last active October 12, 2020 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cosmologist/e2441cd45c5aec853f50439af53d48c3 to your computer and use it in GitHub Desktop.
Save Cosmologist/e2441cd45c5aec853f50439af53d48c3 to your computer and use it in GitHub Desktop.
<?php
/**
* Add the specified HTTP header to the prepared request
*/
function addHeader(Symfony\Component\BrowserKit\Client $client, string $name, $value)
{
$client->setServerParameter('http-' . $name, $value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment