1 Answer
1

You can also write the post body in a single line. Multiple lines should be more readable for long parameter lists though. curl (which is used by ob-http for the actual call) will strip out the whitespaces anyway. If you use & at the beginning or end of the line is just a matter of taste. Using it at the beginning has the advantage that you only have to change one line when appending parameters (but it would be the other way around if you prefer to add them at the beginning).

The header Content-Type: application/x-www-form-urlencoded is set by default for POST, but you can also add it explicitly. Just add it as another line after POST along with the other header parameters.