cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

New HTTP Request : How to see what the call is

justvince
Level III

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");
);

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Craige_Hales
Super User


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"
Craige

View solution in original post

justvince
Level III


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.

View solution in original post

3 REPLIES 3
Craige_Hales
Super User


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"
Craige
justvince
Level III


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.

Craige_Hales
Super User


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.

Craige