Parameter with space in POST-request
Closed this issue · 2 comments
yshinkarev commented
I can set header with spaces: --header "Token: aaaa". It works properly.
But if I use parameter: --data-urlencode datetime="2017-05-24 18:02:42", I get error.
Because your function getArgsFromCommand split date and time to 2 arguments.
I try --data-urlencode datetime='2017-05-24 18:02:42', no success too.
libetl commented
Hi @yshinkarev
Here is the regex I will try to setup in the library : https://regex101.com/r/B5Rga8/16 (please have a look at the unit tests as well)
Is the regular expression correct ?
Thanks for your help.
yshinkarev commented
I change datetime="2017-05-24 18:02:42" to "datetime=2017-05-24 18:02:42".
Start works properly. Your way works too. Thanks.