Changeset f05d3e3
- Timestamp:
- 01/05/12 21:04:37 (5 months ago)
- Branches:
- master
- Children:
- f3e60a4
- Parents:
- 8bea7a4
- git-author:
- Michiel Rook <mrook@…> (01/05/12 21:04:37)
- git-committer:
- Michiel Rook <mrook@…> (01/05/12 21:04:37)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/phing/tasks/ext/HttpRequestTask.php
- Property mode changed from 100755 to 100644
r8f2c6c5 rf05d3e3 42 42 43 43 /** 44 * Holds the proxy45 *46 * @var string47 */48 protected $_proxy = null;49 50 /**51 44 * Holds the regular expression that should match the response 52 45 * … … 122 115 123 116 /** 124 * Sets the proxy125 *126 * @param string $proxy127 */128 public function setProxy($proxy) {129 $this->_proxy = $proxy;130 }131 132 /**133 117 * Sets the response regex 134 118 * … … 256 240 } 257 241 258 $config = array(); 259 if (isset($this->_proxy) && $url = parse_url($this->_proxy)) { 260 $config['proxy_user'] = $url['user']; 261 $config['proxy_password'] = $url['pass']; 262 $config['proxy_host'] = $url['host']; 263 $config['proxy_port'] = $url['port']; 264 } 265 266 $request = new HTTP_Request2($this->_url, $config); 242 $request = new HTTP_Request2($this->_url); 267 243 268 244 // set the authentication data -
docs/phing_guide/book/chapters/appendixes/AppendixC-OptionalTasks.html
r8f2c6c5 rf05d3e3 2169 2169 <td>Yes</td> 2170 2170 </tr> 2171 <tr>2172 <td>proxy</td>2173 <td>String</td>2174 <td>The proxy to use, such as <em>http://user:password@hostname:port/</em></td>2175 <td>n/a</td>2176 <td>No</td>2177 </tr>2178 2171 <tr> 2179 2172 <td>responseRegex</td>
Note: See TracChangeset
for help on using the changeset viewer.
