Questions tagged as 'http'

1
answer

What is the difference between x-www-form-urlencoded and form-data? [duplicate]

Is there any relevant difference between content-type x-www-form-urlencoded and form-data ? I always have doubts when I should use one or the other because I do not know if there are any shocking differences.     
asked by 10.12.2015 / 17:43
1
answer

What does Code 201 of a Request mean?

In searches I saw the 201 code of a Request means:    The request was met and resulted in a new feature being created. But I did not fully understand the meaning of this. What would be an example for a better understanding of...
asked by 07.12.2016 / 15:51
1
answer

How does the "Referrer Policy" header work?

I was doing some tests using Opera browser (same engine / Chrome engine) and in the HTTP request this is sent: Referrer Policy: no-referrer-when-downgrade For example in http://localhost I get this: Request URL: http://localhost/ R...
asked by 30.03.2017 / 23:39
1
answer

Is it possible to make a false POST request?

I am creating a central system that validates the information coming from other client systems via post and would like to know if it would be possible for someone to make a post false request if passing through one of those clients? Using, for e...
asked by 07.09.2014 / 00:26
1
answer

What status can I return in an attempt to submit a form without a TOKEN?

I'd like to know what status http I should return in my application if someone is trying to forge a request via form. The application I developed is done in Laravel 4 and I'm using that CSRF_TOKEN . The CSRF_TOKEN...
asked by 13.02.2015 / 14:02
1
answer

What is the meaning of error 406?

   Not Acceptable       An appropriate representation of the requested resource   /aa/bb/cc.php could not be found on   this server.       Additionally, a 404 error was encountered while trying to   use an ErrorDocument to handle the request....
asked by 11.10.2015 / 16:45
3
answers

What HTTP status code do I use to indicate validation failure?

When a method in a web API detects that there was a failure in validating the data of an entity to be added or updated is there any HTTP code that is standard to be sent? For now I am using the 400 (bad request) code, but I do not know if there...
asked by 15.07.2014 / 22:50
1
answer

WebService REST Simple

How to create a simple REST-type WebService that does HTTP communication from an Android device to the server using the PHP language? My goal is to Requests and receive a Response from the server.     
asked by 28.08.2015 / 19:10
2
answers

GET, POST or PUT, which one to use for issuing an invoice?

What should I use when the intent is not to view, save, and update data? I am creating an API that makes the electronic invoice issue, I did the full CRUD for the information of the notes, but now I need to create a resource that transmits th...
asked by 31.07.2018 / 22:14
1
answer

What is the purpose of the "X" at the beginning of some headers names?

There are specific headers in HTTP that have the purpose of passing some information. Such as Content-Type which informs the mime of the content you want to receive or send. We also have Content-Length that determines the size in b...
asked by 10.11.2016 / 17:38