Index: trunk/phase3/includes/HttpFunctions.php |
— | — | @@ -402,7 +402,20 @@ |
403 | 403 | } |
404 | 404 | } |
405 | 405 | |
| 406 | + /** |
| 407 | + * Get the member variable status for an HTTP Request |
| 408 | + * |
| 409 | + * @return Integer |
| 410 | + */ |
| 411 | + public function getStatus() { |
| 412 | + if ( !$this->respHeaders ) { |
| 413 | + $this->parseHeader(); |
| 414 | + } |
406 | 415 | |
| 416 | + return (int)$this->respStatus; |
| 417 | + } |
| 418 | + |
| 419 | + |
407 | 420 | /** |
408 | 421 | * Returns true if the last status code was a redirect. |
409 | 422 | * |