POST / GET
November 13, 2012 11:41AM
Dear All,

I am trying to do some POST / GET via Nginx.

What I want to do is that if I have a GET REQUEST as below

GET http://someurl/data/xxxx, it should be rewritten to
POST http://someurl/ with postdata like {contentid:xxxx}

And, if there is a POST request as below
POST http://someurl/xxx with postdata like {name:"TE", cef[field_text]:"some content with html"}, it should be rewritten to
POST http://someurl with postdata like {contentid:xxx,name:"TE", cef[field_text]:"some content with html"}

Is this possible and if so any help to achieve this would be much appreciated.

Thanks,
Geek876
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready