- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
New HTTP Request : How to see what the call is
Is there a way to show what the call will be? I would like to debug to be sure what the call is being built as...
E.g., Show(MyRequest)
MyRequest = https://may.api.url/?username=XXX1234567
myAPIURL = "https://my.api.url/";
myRequest = New HTTP Request(
URL(myAPIURL),
Method("GET"),
Headers("username: XXX1234567");
);
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: New HTTP Request : How to see what the call is
Check the scripting index, or use show properties. It looks like there are only two getters of interest before the send:
myAPIURL = "https://my.api.url/";
myRequest = New HTTP Request(
URL(myAPIURL),
Method("GET"),
Headers("username: XXX1234567");
);
showproperties(myRequest);
myRequest<<get last url; // "https://my.api.url/"
myRequest<<get method; // "GET"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: New HTTP Request : How to see what the call is
Thanks. From what I can find there really is now way to "show" the whole string for the request. Just beginning to learn about API so maybe my want is not a normal request, but just thought it would be good to debug.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: New HTTP Request : How to see what the call is
Check the scripting index, or use show properties. It looks like there are only two getters of interest before the send:
myAPIURL = "https://my.api.url/";
myRequest = New HTTP Request(
URL(myAPIURL),
Method("GET"),
Headers("username: XXX1234567");
);
showproperties(myRequest);
myRequest<<get last url; // "https://my.api.url/"
myRequest<<get method; // "GET"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: New HTTP Request : How to see what the call is
Thanks. From what I can find there really is now way to "show" the whole string for the request. Just beginning to learn about API so maybe my want is not a normal request, but just thought it would be good to debug.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: New HTTP Request : How to see what the call is
I understand why you want to see it. It would make a good wish list item.
I think there are web sites that will echo the request back to you, but I have not played with them.