Hypertext Transfer Protocol (HTTP) Question:
What are response codes in HTTP?
Answers:
Answer #1HTTP response codes standardize a way of informing the client about the result of its request.
You might have noticed that the example application uses the PHP header(), passing some strange looking strings as arguments. The header() function prints the HTTP headers and ensures that they are formatted appropriately. Headers should be the first thing on the response, so you shouldn't output anything else before you are done with the headers. Sometimes, your HTTP server may be configured to add other headers, in addition to those you specify in your code.
You might have noticed that the example application uses the PHP header(), passing some strange looking strings as arguments. The header() function prints the HTTP headers and ensures that they are formatted appropriately. Headers should be the first thing on the response, so you shouldn't output anything else before you are done with the headers. Sometimes, your HTTP server may be configured to add other headers, in addition to those you specify in your code.
Answer #2How to hide the http request action behind and show a message in the browser instead?
I've created a http request which close the ticket when the caller clicks on the link. But it directs to the page of the ticket with an operator view.
So the caller will see the operator interface of the ticket when he clicks on the link to close the ticket.
Instead I just want to show a message to the caller saying your request has been done for exemple.
Is it possible to hide the action behind?
I've created a http request which close the ticket when the caller clicks on the link. But it directs to the page of the ticket with an operator view.
So the caller will see the operator interface of the ticket when he clicks on the link to close the ticket.
Instead I just want to show a message to the caller saying your request has been done for exemple.
Is it possible to hide the action behind?
Previous Question | Next Question |
What are status codes in HTTP? | What is the mean of GET? |