I\'m trying to set up two PHP on GAE sites: One to act as a web services layer, and another to act as the front-end. So far, things are great. I\'m trying to secure communicatio
Two ways, either set follow_location to false and/or max_redirects to 0.
$context = [
'http' => [
'method' => 'get',
'header' => "custom-header: custom-value\r\n" . "custom-header-two: custome-value-2\r\n",
'content' => $data,
'follow_location' => false,
]
];
or
$context = [
'http' => [
'method' => 'get',
'header' => "custom-header: custom-value\r\n" . "custom-header-two: custome-value-2\r\n",
'content' => $data,
'max_redirects' => 0,
]
];