http - apachebench(ab) append new line for post data -
trying ab benchmark testing post request, looks post data in file append new blank line. solution issue?
$ cat d1 a=1&&b=2
ab command is
ab -c 1 -n 1 -t application/x-www-form-urlencoded -p d1 -v 2 url
check post data, find
'b': '2\n'
i running same issue when pasting text in using vim. turns out vim will, default, add new line file. see why vim add new line @ end of file? reference.
fixed opening file in sublime , removing new line.
Comments
Post a Comment