Top "Http-headers" questions

In the Hypertext Transfer Protocol (HTTP), HTTP header fields contain the operating parameters of an HTTP request or response.

How do I POST JSON data with cURL?

I use Ubuntu and installed cURL on it. I want to test my Spring REST application with cURL. I wrote …

json rest spring-mvc curl http-headers
What is the correct JSON content type?

I've been messing around with JSON for some time, just pushing it out as text and it hasn't hurt anybody (…

json http-headers content-type
How to send a header using a HTTP request through a curl call?

I wish to send a header to my Apache server on a Linux box. How can I achieve this via …

curl http-headers
application/x-www-form-urlencoded or multipart/form-data?

In HTTP there are two ways to POST data: application/x-www-form-urlencoded and multipart/form-data. I understand that most browsers are …

http post http-headers
What does enctype='multipart/form-data' mean?

What does enctype='multipart/form-data' mean in an HTML form and when should we use it?

html http-headers multipartform-data
403 Forbidden vs 401 Unauthorized HTTP responses

For a web page that exists, but for which a user does not have sufficient privileges (they are not logged …

http-headers http-status-code-403 http-status-codes http-status-code-401 http-response-codes
How to set HTTP header to UTF-8 using PHP which is valid in W3C validator?

I have several PHP pages echoing out various things into HTML pages with the following code. <meta http-equiv="Content-type" …

php html http-headers
How do we control web page caching, across all browsers?

Our investigations have shown us that not all browsers respect the HTTP cache directives in a uniform manner. For security …

http caching https http-headers
Access Control Request Headers, is added to header in AJAX request with jQuery

I would like to add a custom header to an AJAX POST request from jQuery. I have tried this: $.ajax({ …

javascript jquery ajax post http-headers
Proper MIME media type for PDF files

When working with PDFs, I've run across the MIME types application/pdf and application/x-pdf among others. Is there a …

pdf http-headers content-type mime