Which is better, pass username / password as parameters in the HTTP header or HTTP tag?

I am using a REST server.

I get the username, requestid and password for each request from the user.

I have two options: I can ask users to pass these three parameters in the http tag or in the http header.

What would be the best way to implement it and why?

Thanks in advance.

+5
source share
1 answer

Headline

If I understand your question, you have something that you are going to convey with each request. This means that if you want to support secure requests, such as GET and HEAD, you have only two options: HTTP headers or URL (usually using request parameters).

, URL-. , , , SSL, /, .

, , , . JSON, XML XHTML, .

+2

All Articles