Page 1 of 1

REST - headers and parameters

Posted: Tue Nov 25, 2014 3:12 pm
by marvinbleiberg

Can someone explain the difference between header and parameter (for REST post)? When would something be in Header, and when would it instead be in parameters?

thank you-


REST - headers and parameters

Posted: Tue Nov 25, 2014 3:51 pm
by Ihor Didevych

Hi Marvin,

There are basic principles of HTTP(S) protocol.
Headers are used to tell server, that client knows how to intercommunicate with server.
Parameters are used to tell something specific about current url, orbject or action that client is trying to do with.
You can read more about HTTP(S) here^
http://en.wikipedia.org/wiki/Hypertex...


REST - headers and parameters

Posted: Tue Nov 25, 2014 4:09 pm
by marvinbleiberg

What would typically go in the headers section, what would typically go in parameters? I'm thinking of:
API key
API Secret
xml or json

would these go in header?

In general - How can I tell from the documentation for a REST service, what goes where?

thank you-
MB


REST - headers and parameters

Posted: Tue Nov 25, 2014 6:18 pm
by Evgene Karachevtsev

Hello Marvin,

This question should be asked to a support of a webside, which provides api. But these links may be useful for you:
http://www.soapui.org/Best-Practices/...
http://www.soapui.org/REST-Testing/un...
http://stackoverflow.com/questions/79...