February 18

HTTP verbs

Most used  HTTP verbs –


This method is  used to fetch information about an resource which is already exist. This is used by browsers when you enter a URL and hit go, or when you click on a link, so it perfect for fetching information on one of your REST resources.


This method is  used to add or update an existing resource with information. Browsers use this to submit most types of forms on the internet.


This method is  used  to delete existing data. But actually many  browsers not  using this method.

February 18

Take Screenshots with PHP!

Using GrabzIt we can take screenshots using PHP very easily.

This contains all the files you need including an example index.php file that allows you to take the picture and the handler to receive it. If you want to get started quickly stop here and update the variables in the GrabzItConfig.php to match the location you installed the library.

Category: Uncategorized | Comments Off on Take Screenshots with PHP!
February 9

HTTP Status Codes for Responses

While working with REST API to get json response for the mobile application, I crossed some HTTP status codes, this  HTTP status codes provide a standard way for the server to inform the client about the status of the request.

Below are the list of HTTP status codes:

  • 200 (OK) confirms the success of a GET POST or  DELETE request.
  • 201 (Created) confirms the success of a POST request.
  • 304 (Not Modified) is used by a conditional GET to inform the client that the resource has not been modified.
  • 400 (Bad Request) indicates a malformed request, often for a POST  in which the request’s content is invalid.
  • 401 (Unauthorized) is used to indicate that authentication is required.
  • 402 (unprocessable entity) is used when duplicate entry.
  • 403 (Forbidden) indicates that the client is not authorized for the requested action.
  • 404 (Not Found) is used to respond to any request to indicate that the resource could not be found.
  • 405 (Method Not Allowed) informs the client the that requested HTTP method is not available for that resource.
  • 409 (Conflict) should be used for situations where there is a conflict which prevents the service to perform the operation, but there is still a chance that the client might be able to resolve the conflict and resubmit the request.