Opened 2 years ago

Closed 2 years ago

#2296 closed defect (invalid)

METHOD always recognized as 'GET' when using postman

Reported by: exxocism@… Owned by:
Priority: minor Milestone: nginx-1.21.5
Component: nginx-core Version: 1.19.x
Keywords: Cc: exxocism@…
uname -a: Linux ip-172-31-9-17 5.11.0-1022-aws #23~20.04.1-Ubuntu SMP Mon Nov 15 14:03:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.21.4
built by gcc 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
built with OpenSSL 1.1.1f 31 Mar 2020
TLS SNI support enabled
configure arguments: --add-module=../njs/nginx --with-pcre --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-threads

Description (last modified by exxocism@…)

PoC

  • All the request method is shown as GET
  • even if I used POST or PUT or DELETE, when I'm using postman
  • using postman version 9.4.1 latest
  • Don't know if it's a problem of postman or nginx, I want you guys to figure it out.
  • I found this bug when I was using njs script
  • and figured out It has nothing to do with njs
  • rather it's related to nginx problem.
  • nginx access / error log shows methods always as "GET"
    2021/00/00 00:00:00 [info] 00#00: *00 js: [DUMMY] 000.000.000.000 GET /dummy
    

https://user-images.githubusercontent.com/11373428/147413930-564d97d9-3c80-4767-b309-1689a2aaabec.png

Thank you for your cool nginx :D

Change History (3)

comment:1 by exxocism@…, 2 years ago

CONFIRMED TO BE A POSTMAN HTTP REDIRECTION PROBLEM : THANK YOU FOR YOUR EFFORT

comment:2 by exxocism@…, 2 years ago

Description: modified (diff)

comment:3 by Maxim Dounin, 2 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.