Request

 

Introduction / Request

 

All requests will be based on RESTful resource-oriented format for its simplicity. RESTful is based on simple HTTP GET/PUT/POST/DELETE action with URI indicating the object. For POST and PUT requests, the request body is supported with JSON object or XML hence with the Content-Type header need set to application/json or application/xml.



Making The Request

Every modern programming language has one or more libraries for making HTTP requests. Given below are the recommended HTTP client libraries for some popular programming languages:

Programming Language http Library
Command line Curl
PHP Libcurl
Java HttpClient
Python Httplib2
Ruby Rest-open-uri
C# System.Web.HTTPWebRequest
Javascript XMLHttpRequest
C Libcurl
Perl Libwww-perl(also known as LWP)



Request Status
Request Status Code Name
0 None
1 Success
2 Failure
3 Unchanged