Fix forming HTTP requests.

Previously, it didn't distinguish URL parameters (officially
"query") and body contents, resulting in weird requests like:
(NB final '?')

STOP /job/abcd?save=0&force=1?

and causing server to pass values in wrong way.

This change makes it send URL parameters and body separately,
according to the proper destination of each case.