Subversion Repositories SmartDukaan

Rev

Rev 11805 | Rev 13061 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11805 Rev 12999
Line 118... Line 118...
118
	    				$cookiesStringToPass .= $info->name . '=' . addslashes($info->value);
118
	    				$cookiesStringToPass .= $info->name . '=' . addslashes($info->value);
119
	    			}
119
	    			}
120
	    		}
120
	    		}
121
			}
121
			}
122
			curl_setopt($this->calls[$key]["curl"], CURLOPT_COOKIE, $cookiesStringToPass);
122
			curl_setopt($this->calls[$key]["curl"], CURLOPT_COOKIE, $cookiesStringToPass);
-
 
123
			foreach (getallheaders() as $name => $value) {
-
 
124
			    if($name == "X-Forwarded-For"){
-
 
125
			    	$headers = array('X-Forwarded-For : '.$value);
-
 
126
			    	curl_setopt($this->calls[$key]["curl"], CURLOPT_HTTPHEADER, $headers);
-
 
127
			    }
-
 
128
			}
123
		}
129
		}
124
		curl_setopt_array($this->calls[$key]["curl"], $options);
130
		curl_setopt_array($this->calls[$key]["curl"], $options);
125
		curl_multi_add_handle($this->curl_parent,$this->calls[$key]["curl"]);		 
131
		curl_multi_add_handle($this->curl_parent,$this->calls[$key]["curl"]);		 
126
	}
132
	}
127
 
133
 
Line 223... Line 229...
223
	}
229
	}
224
 
230
 
225
}
231
}
226
 
232
 
227
/* End of file mcurl.php */
233
/* End of file mcurl.php */
228
/* Location: ./application/libraries/mcurl.php */
-
 
229
234
/* Location: ./application/libraries/mcurl.php */
-
 
235