B
B
beduin012015-01-08 12:29:12
Computer networks
beduin01, 2015-01-08 12:29:12

What are post request parameters?

There is a resource in which in order to get an image you need to click on it. Then the image will be generated.
If you try to display an image at the direct address without clicking on it, it will not be displayed. To do this, I changed the time in the URL.
The bottom line is that I believe that the browser generates a POST request and then the server generates the desired image.
I wanted to test this and send a POST request without clicking on the image itself. However, in the Network -> Headers tab, there is no post data in which the snapshot time was indicated.
But there is an Options tab where you can find the name of the requested image. What are these parameters? How to edit them and enter a new value there, and then send them?
e65e1c47e2af425db7d8ac40aae73c24.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2015-01-08
@beduin01

Request parameters are key-value data that are written to the request url after the question mark ("whistle").
Roughly speaking, if we access the address toster.ru
and want to pass the herp parameter with the value derp, then the address will take the following form:
toster.ru/?herp=derp
In addition, multiple parameters must be separated by the “&” sign.
Those. if, in addition to derp, we also want to pass foo with the value bar, the final url will be like this:
toster.ru/?herp=derp&foo=bar
Actually, when you changed the time in the url, you changed the value of the corresponding parameter.
===
Yes, since it is impossible to pass parameters to post in the same way as get, the values ​​will be packed inside the request body, depending on what content-type it has specified.
To change the data here, I think it's better to use a special plugin (some kind of "Poster" or its analogues).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question