Questions tagged [request-uri]

The Request-URI is a Uniform Resource Identifier to identify the resource upon which the request should be applied.

There are 4 types of options available for the request uri depending on the nature of the request -

  • "*" = request does not apply to a particular resource
  • absoluteURI = when the request is being made to a proxy
  • abs_path = to identify a resource on an origin server or gateway.
  • authority = only used by the CONNECT method
101 questions
0
votes
0 answers

How to do request_uri single use? Pushed Authorization Requests with OAuth2 / Oidc

The specification of Pushed Authorization Requests says that request_uri should be single-use. Since parts of the authorization request content, e.g., the code_challenge parameter value, are unique to a particular authorization request, the client…
Szyszka947
  • 473
  • 2
  • 5
  • 21
0
votes
1 answer

PayPal IPN 414 Error When Verifying Received Data

PayPal is returning a 414 "Request-URI Too Large" error when requesting POST to verify a data received. Admittedly, the data we have is too long but we couldn't do anything with that since it is a valid transaction from our customer. I have referred…
sd4ksb
  • 241
  • 1
  • 4
  • 16
0
votes
0 answers

Cannot Redirect Using $_SERVER Variables, PHP

I have a PHP application (a request form) that first checks for an active $_SESSION before a user can access the site. Because of the timeout period set for this form there is rarely an active session. Here's the check: if…
0
votes
0 answers

How to make Lambda + API Gateway obey REQUEST_URI?

I created an AWS Lambda with my application (a Web server) written in Rust Actix. I use https://crates.io/crates/lambda-web Then I added this Lambda as the backend of an AWS HTTP API. The HTTP API has only $default…
porton
  • 5,214
  • 11
  • 47
  • 95
0
votes
1 answer

PHP $_SERVER['REQUEST_URI'] returns question marks ? for utf-8 characters after the slash

I have a route.php which gets called for every php request to return a friendly uri. In route.php it parses $_SERVER['REQUEST_URI'] to get the parameters. I have a problem now when the request uri contains utf-8 characters after the slash, it will…
Eddi
  • 479
  • 5
  • 22
0
votes
1 answer

Show specific content only on the domain home page to unsigned users

I need to display the login form located in the external php file common for all pages of the site only on the homepage which may look like www.domain.com, www.domain.com/ or www.domain.com/index.php, to unsigned visitors only. I've made the…
YKKY
  • 605
  • 1
  • 6
  • 18
0
votes
1 answer

REQUEST_URI if statement thinks /test.php is not test.php

I'm currently doing a check in my PHP script to see if the current URL is not test.php. If it isn't, then redirect. If it is, redirect. However, I ran into an issue. It thinks that test.php is not test.php. I looked on here for something, including…
84865465
  • 11
  • 3
0
votes
1 answer

How to REQUEST_URI ARGS or Params Dynamic in ModSecurity

Example url /outlet/?filter_cor=linho,metalizado,caramelo,bordo,listrad I would like to know if it is possible to make a rule in modSecurity that where are the arguments "linho,metalizado,caramelo,bordo,listrad" if the names are changed he accepts…
0
votes
0 answers

NGINX: Replace random query values with static values

I know that my question had been answered once already, but it seams that I can't find it anymore. My apologies for that :) Is there a way I can replace non alphanumeric characters returned with $request_uri with a a static value? My URL looks like…
Phet
  • 1
  • 1
0
votes
2 answers

$_SERVER['REQUEST_URI'] in Session saves latest missing file instead page URI

I'm facing a very strange behavior and hope to get your help and the solution or explenation for it. I do use a very simple code on a page: // start a session if( !session_id() ) session_start(''); // write current url in session to prepare…
J. Doe
  • 43
  • 5
0
votes
1 answer

Apache directive to not to redirect REQUEST_URI with IF condition

The Apache directive is working successfully to redirect the web application URL if it contains "/login" string in REQUEST_URI to the help page. This works with a single directive as below. RedirectMatch 301 "^(.*)"…
rgh
  • 40
  • 2
  • 11
0
votes
1 answer

Getting exception while using mockito to get req.getRequestURI()

I am facing issue while mocking a requestURI().any help in this issue will be benifical i am trying to mock using mockito below line String reqURI25 = req.getRequestURI().substring(req.getContextPath().length()); I tried…
0
votes
0 answers

SET COOKIE PHP using REQUEST_URI and then output without refreshing page

I'm hoping one you bright sparks can help me. I have a simple PHP script that will output a different telephone number based on the fact if the URL they access contains a certain query string. This allows me to track phone calls easier when using…
Simon Hayter
  • 3,131
  • 27
  • 53
0
votes
1 answer

Insert current URL into PHP email

I have a video website and I need to create a link or button so that a visitor can click to report a broken link. I tried to include REQUEST_URI but so far without success. The URL just never shows. This is the content of report.php:
KingLoner
  • 1
  • 2
0
votes
0 answers

How to stop weblogic access logs encoding the request url

In the weblogic access logs, request url is getting printed in encoded format. Like "&" character is actually getting printed as "&" How to fix this ? Any thoughts ?
J.K
  • 11
  • 3