Re: [PATCH] Parsing of parameters in POST requests
[email protected] Wed, 28 Oct 2015 10:58:19 +0100
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Franck, thanks for your patch but I can’t accept it. 1. It break compilation, because you change function declaration but not a calls. 2. I don’t think that parse cgivars function is the right place to do it. CGI vars are GET method I think it’s better to implement new parse function and caller should decide wich one to use. Alex > Am 20.10.2015 um 17:41 schrieb Lamasuta, Franck, Vodafone Automotive <[email protected]>: > > Hi list, > > When Kannel receives HTTP requests, it parses the parameters in the URL. This is fine for GET or HEAD requests. But it isn't for POST requests as the parameters are supposed to be supplied in the body. > > One of our partners (Maxis, in Malaysia) sends HTTP POST requests to submit the delivery reports and Kannel can't process them correctly. > Please find attached a patch to fix this issue. > It allows Kannel to parse the parameters from the body when it's a POST and from the URL, like before, for the other HTTP methods. > > Regards, > Franck > > This message and any files or documents attached are strictly confidential or otherwise legally protected. It is intended only for the individual or entity named. If you are not the named addressee or have received this email in error, please inform the sender immediately, delete it from your system and do not copy or disclose it or its contents or use it for any purpose. Please also note that transmission cannot be guaranteed to be secure or error-free.<gwlib_http.c.diff>