mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
#18949479 : thanks to teslamint
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7584 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aa31f814c3
commit
dc71f2700d
1 changed files with 2 additions and 2 deletions
|
|
@ -332,11 +332,11 @@
|
||||||
* @remarks if the target is moved (when return code is 300~399), this function follows the location specified response header.
|
* @remarks if the target is moved (when return code is 300~399), this function follows the location specified response header.
|
||||||
**/
|
**/
|
||||||
function getRemoteResource($url, $body = null, $timeout = 3, $method = 'GET', $content_type = null, $headers = array(), $cookies = array(), $post_data = array()) {
|
function getRemoteResource($url, $body = null, $timeout = 3, $method = 'GET', $content_type = null, $headers = array(), $cookies = array(), $post_data = array()) {
|
||||||
//set_include_path(_XE_PATH_."libs/PEAR");
|
|
||||||
requirePear();
|
requirePear();
|
||||||
require_once('HTTP/Request.php');
|
require_once('HTTP/Request.php');
|
||||||
|
|
||||||
if(__PROXY_SERVER__!==null) {
|
$parsed_url = parse_url(__PROXY_SERVER__);
|
||||||
|
if($parsed_url["host"]) {
|
||||||
$oRequest = new HTTP_Request(__PROXY_SERVER__);
|
$oRequest = new HTTP_Request(__PROXY_SERVER__);
|
||||||
$oRequest->setMethod('POST');
|
$oRequest->setMethod('POST');
|
||||||
$oRequest->_timeout = $timeout;
|
$oRequest->_timeout = $timeout;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue