Testing a request on a generic HTTP server
Testing HTTPGet()
, HTTPPost()
, or HTTPPut()
requests on a generic HTTP test server can help verify your request is formatted correctly. Two commonly used test servers include:
-
https://posttestserver.dev/
– Free, no login currently required.
-
https://pipedream.com/
– Request Bin is accessible with a free account.
NOTE:Post Test Server works for HTTPGet, Post, and Put.
Using Post Test Server:
-
Open the Post Test Server URL
-
Click the Open Random Box to generate a test environment.
-
Copy the Post URL to use in your Get, Post, or Put tests in CRBasic.
NOTE:Keep the web window open—closing it will delete your test box and results.
-
Test your code and monitor the results in the web window.
NOTE:Click Details to view the request headers, parameters, and body of your transaction.
-
Once your test is successful, run your code on the real HTTP server and adjust it based on the server's documentation.