| 1 |
<?php |
<?php |
| 2 |
// $Id: http_action.module,v 1.2 2007/07/31 06:18:30 eaton Exp $ |
// $Id: http_action.module,v 1.3 2007/07/31 21:29:05 eaton Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 112 |
function http_action_request_action($object, $context) { |
function http_action_request_action($object, $context) { |
| 113 |
$context['global'] = NULL; |
$context['global'] = NULL; |
| 114 |
|
|
| 115 |
$uri = token_replace_multiple($context['uri'], $context); |
if (module_exists('token')) { |
| 116 |
$data = token_replace_multiple($context['data'], $context); |
$uri = token_replace_multiple($context['uri'], $context); |
| 117 |
|
$data = token_replace_multiple($context['data'], $context); |
| 118 |
|
$tmp = token_replace_multiple($context['headers'], $context); |
| 119 |
|
} |
| 120 |
|
else { |
| 121 |
|
$uri = $context['uri']; |
| 122 |
|
$data = $context['data']; |
| 123 |
|
$tmp = $context['headers']; |
| 124 |
|
} |
| 125 |
|
|
|
$tmp = token_replace_multiple($context['headers'], $context); |
|
| 126 |
$lines = explode("\n", $tmp); |
$lines = explode("\n", $tmp); |
| 127 |
$headers = array(); |
$headers = array(); |
| 128 |
foreach ($lines as $line) { |
foreach ($lines as $line) { |