/CURL-AJAX-CodeGenerator

CURL/AJAX CodeGenerator

Primary LanguageHTML

CURL-AJAX-CodeGenerator

Visit www.csmadhav.esy.es to see this live.


This is a quick tool which can generate PHP cURL / AJAX code for getting reponse of an API. This tool is useful when you have to save time writing cURL/ AJAX code again and again.

Follow these steps

1.Enter the URL of API
2.Select method currently GET and POST are supported.
3.Select your code generation option
4.Add Data body to send as parameters to the URL in JSON:
for example:
{
  "parameter 1":"value",
  "parameter 2":"value"
}
5. Hit GO! and You will get Response details on left textarea and your desired code on right.


Some Information

For Content type:application/json
this tool add a line to parse response into PHP Array.

For XML:
this tool add a line to parse response into simpleXMLelement object.