Page 1 of 1
MX Custom HTTP requests
Posted: Mon 18 Jan 2016 1:59 pm
by mcrossley
Steve, I think the custom HTTP requests are GETs, correct?
Any plans to make GET or POST selectable?
If I'm correct I'll add a feature request for this.
Re: MX Custom HTTP requests
Posted: Mon 18 Jan 2016 2:29 pm
by steve
Yes, it always does GETS currently. It wouldn't be too hard to do POSTs as an option, the main complication is how to supply the parameters to Cumulus, as they need to be encoded as name/value pairs rather than the "...?foo=x&bar=y" syntax passed with the URL as with GET. I guess a simple approach would be to specify it in the GET form, and then Cumulus could parse it and split it up into name/value pairs.
Re: MX Custom HTTP requests
Posted: Mon 18 Jan 2016 2:44 pm
by mcrossley
I guess the simplest would be two fields, one for the server address, another for parameters/values, concatenate them for GETs (with a '?' separator), and put the parameters/values in the body for POSTS.
That would break the existing config file entries though.
I'll raise a feature request...