Skip to content

Instantly share code, notes, and snippets.

@bnb
Created November 2, 2014 15:29
Show Gist options
  • Select an option

  • Save bnb/960fe2dbb0cbc8e604a9 to your computer and use it in GitHub Desktop.

Select an option

Save bnb/960fe2dbb0cbc8e604a9 to your computer and use it in GitHub Desktop.
if(!isset($_GET['entity'])){
header('HTTP/1.0 400 Bad Request');
header('Link: <?entity=some-entity-uri>, rel="Usage";'); //Is the entity here...
die();
}
$entity = $_GET['entity']; //...the same as the entity in the GET request here? If not, where is the one in the GET request coming from?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment