/**
* A concrete and secured HTTP request class to make HTTP requests more abstract
*
- * @author Roland Haeder <webmaster@ship-simu.org>
+ * @author Roland Haeder <webmaster@shipsimu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Core Developer Team
* @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.org
+ * @link http://www.shipsimu.org
* @todo Move out the cookie part to a seperate class, e.g. Cookie
*
* This program is free software: you can redistribute it and/or modify
*
* @return $httpInstance An instance of this class
*/
- public final static function createHttpRequest () {
+ public static final function createHttpRequest () {
// Create an instance
$httpInstance = new HttpRequest();
* @param $headerName Name of the header
* @return $headerValue Value of the header or 'null' if not found
*/
- public function getHeader ($headerName) {
+ public function getHeaderElement ($headerName) {
// Default return value on error
- $headerValue = null;
+ $headerValue = NULL;
// Construct the name
- $name = 'HTTP_' . strtolower($this->convertDashesToUnderscores($headerName));
+ $name = 'HTTP_' . strtoupper($this->convertDashesToUnderscores($headerName));
// Does this header exist?
if (isset($_SERVER[$name])) {
*/
public final function readCookie ($cookieName) {
// Default is no cookie with that name found
- $cookieValue = null;
+ $cookieValue = NULL;
// Is the cookie set?
if (isset($_COOKIE[$cookieName])) {