Intellij IDEA HTTP Request requests to set Cookie

When using Intellij IDEA's HTTP Request with cookies, you need to write the cookie word as " cookie " in all lowercase, otherwise the set cookie will not take effect.

POST http://localhost:9091/rest/miracle/findList
Content-Type: application/json
cookie: JSESSIONID=ce22a4ed-b185-4541-847d-25ff7472eae4

insert image description here


PS:

If you use Postman to call, just set Cookie in Headers, as follows:
insert image description here

There are no restrictions on the upper and lower case spelling of Cookie in Postman , and Cookie is used by default.


Guess you like

Origin blog.csdn.net/aikudexiaohai/article/details/131368723