T
T
Timur Nigmetov2018-03-30 23:36:59
PHP
Timur Nigmetov, 2018-03-30 23:36:59

Why is the get request not being processed?

Good day.
You don't know why, when getting a get request, php does not want to process it somehow.
For example, there is a link https://site.com/link/?order_id=3216&payment_id=589647
I have a page that processes this data and sees the get parameters, but when I receive the same parameters from another server, the system simply ignores parameters. There are no errors in the logs. In the access.log file, you can see that the request has come, but php somehow doesn’t care about it. How to solve the problem?
Here is the data from access.log - 89.219.35.76 - - [31/Mar/2018:02:33:34 +0600] "GET /link/?order_id=3216&payment_id=589647 HTTP/1.1" 301 196 "-" "-"
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Timur Nigmetov, 2018-03-31
@ElectricVst

Found a solution. The fact is that I passed the url of the site without https in the parameters. After I passed the full url, everything went as it should. Thank you all very much.

L
Lazy @BojackHorseman PHP, 2018-03-31
Tag

301 response code is a redirect, it could well have gone to php and not reached, start with .htaccess

P
Paul Denisevich, 2018-03-31
@deniamnet

The request was not processed by PHP because the status was 301 -- this is a redirect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question