function LingotekOAuthRequest::getRequestUrl in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::getRequestUrl()
- 7.4 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::getRequestUrl()
- 7.5 lib/oauth-php/library/LingotekOAuthRequest.php \LingotekOAuthRequest::getRequestUrl()
* Return the normalised url for signature checks
3 calls to LingotekOAuthRequest::getRequestUrl()
- LingotekOAuthRequest::signatureBaseString in lib/
oauth-php/ library/ LingotekOAuthRequest.php - * Return the signature base string. * Note that we can't use rawurlencode due to specified use of RFC3986. * *
- LingotekOAuthRequester::curl_raw in lib/
oauth-php/ library/ LingotekOAuthRequester.php - * Open and close a curl session passing all the options to the curl libs * *
- LingotekOAuthRequestSigner::sign in lib/
oauth-php/ library/ LingotekOAuthRequestSigner.php - * Sign our message in the way the server understands. * Set the needed oauth_xxxx parameters. * *
File
- lib/
oauth-php/ library/ LingotekOAuthRequest.php, line 372
Class
- LingotekOAuthRequest
- Object to parse an incoming OAuth request or prepare an outgoing OAuth request
Code
function getRequestUrl() {
$url = $this->uri_parts['scheme'] . '://' . $this->uri_parts['user'] . (!empty($this->uri_parts['pass']) ? ':' : '') . $this->uri_parts['pass'] . (!empty($this->uri_parts['user']) ? '@' : '') . $this->uri_parts['host'];
if ($this->uri_parts['port'] && $this->uri_parts['port'] != $this
->defaultPortForScheme($this->uri_parts['scheme'])) {
$url .= ':' . $this->uri_parts['port'];
}
if (!empty($this->uri_parts['path'])) {
$url .= $this->uri_parts['path'];
}
return $url;
}