cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-605455%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%EC%83%88%20HTTP%20%EC%9A%94%EC%B2%AD%3A%20%ED%98%B8%EC%B6%9C%EC%9D%B4%20%EB%AC%B4%EC%97%87%EC%9D%B8%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-605455%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8C%85%20%EC%83%89%EC%9D%B8%EC%9D%84%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B1%B0%EB%82%98%20%EC%86%8D%EC%84%B1%20%ED%91%9C%EC%8B%9C%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%8B%AD%EC%8B%9C%EC%98%A4.%20%EB%B3%B4%EB%82%B4%EA%B8%B0%20%EC%A0%84%EC%97%90%20%EA%B4%80%EC%8B%AC%20%EC%9E%88%EB%8A%94%20%EA%B2%8C%ED%84%B0%EA%B0%80%20%EB%91%90%20%EA%B0%9C%EB%BF%90%EC%9D%B8%20%EA%B2%83%20%EA%B0%99%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EmyAPIURL%20%3D%20%22https%3A%2F%2Fmy.api.url%2F%22%3B%0A%0AmyRequest%20%3D%20New%20HTTP%20Request(%0A%20URL(myAPIURL)%2C%0A%20Method(%22GET%22)%2C%0A%20Headers(%22username%3A%20XXX1234567%22)%3B%0A)%3B%0A%0Ashowproperties(myRequest)%3B%0A%0AmyRequest%26lt%3B%3CGET%20last%3D%22%22%20url%3D%22%22%3E%3C%2FGET%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-606271%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%EC%83%88%20HTTP%20%EC%9A%94%EC%B2%AD%3A%20%ED%98%B8%EC%B6%9C%EC%9D%B4%20%EB%AC%B4%EC%97%87%EC%9D%B8%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-606271%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EA%B0%90%EC%82%AC%ED%95%B4%EC%9A%94.%EB%82%B4%EA%B0%80%20%EC%B0%BE%EC%9D%84%20%EC%88%98%20%EC%9E%88%EB%8A%94%20%EB%B0%94%EB%A1%9C%EB%8A%94%20%EC%9D%B4%EC%A0%9C%20%EC%9A%94%EC%B2%AD%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%A0%84%EC%B2%B4%20%EB%AC%B8%EC%9E%90%EC%97%B4%EC%9D%84%20%22%ED%91%9C%EC%8B%9C%22%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.API%EC%97%90%20%EB%8C%80%ED%95%B4%20%EB%B0%B0%EC%9A%B0%EA%B8%B0%20%EC%8B%9C%EC%9E%91%ED%95%9C%EC%A7%80%20%EC%96%BC%EB%A7%88%20%EB%90%98%EC%A7%80%20%EC%95%8A%EC%95%98%EA%B8%B0%20%EB%95%8C%EB%AC%B8%EC%97%90%20%EC%A0%9C%EA%B0%80%20%EC%9B%90%ED%95%98%EB%8A%94%20%EA%B2%83%EC%9D%80%20%EC%9D%BC%EB%B0%98%EC%A0%81%EC%9D%B8%20%EC%9A%94%EC%B2%AD%EC%9D%B4%20%EC%95%84%EB%8B%88%EB%9D%BC%20%EB%94%94%EB%B2%84%EA%B7%B8%ED%95%98%EB%8A%94%20%EA%B2%83%EC%9D%B4%20%EC%A2%8B%EC%9D%84%20%EA%B2%83%EC%9D%B4%EB%9D%BC%EA%B3%A0%20%EC%83%9D%EA%B0%81%ED%96%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-606294%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%EC%83%88%20HTTP%20%EC%9A%94%EC%B2%AD%3A%20%ED%98%B8%EC%B6%9C%EC%9D%B4%20%EB%AC%B4%EC%97%87%EC%9D%B8%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-606294%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%EC%99%9C%20%EB%B3%B4%EA%B3%A0%20%EC%8B%B6%EC%9D%80%EC%A7%80%20%EC%9D%B4%ED%95%B4%ED%95%A9%EB%8B%88%EB%8B%A4.%20%EC%A2%8B%EC%9D%80%20%EC%9C%84%EC%8B%9C%EB%A6%AC%EC%8A%A4%ED%8A%B8%20%EC%95%84%EC%9D%B4%ED%85%9C%EC%9D%B4%20%EB%90%A0%20%EA%B2%83%EC%9E%85%EB%8B%88%EB%8B%A4.%3C%2FP%3E%0A%3CP%3E%EC%9A%94%EC%B2%AD%EC%9D%84%20%EB%90%98%EB%8F%8C%EB%A0%A4%EC%A4%84%20%EC%9B%B9%20%EC%82%AC%EC%9D%B4%ED%8A%B8%EA%B0%80%20%EC%9E%88%EB%8B%A4%EA%B3%A0%20%EC%83%9D%EA%B0%81%ED%95%98%EC%A7%80%EB%A7%8C%2C%20%EB%82%98%EB%8A%94%20%EA%B7%B8%EA%B2%83%EB%93%A4%EC%9D%84%20%EA%B0%80%EC%A7%80%EA%B3%A0%20%EB%86%80%EC%A7%80%EB%8A%94%20%EC%95%8A%EC%95%98%EC%8A%B5%EB%8B%88%EB%8B%A4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-605441%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%EC%83%88%20HTTP%20%EC%9A%94%EC%B2%AD%20%3A%20%ED%98%B8%EC%B6%9C%EC%9D%B4%20%EB%AC%B4%EC%97%87%EC%9D%B8%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-605441%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%ED%98%B8%EC%B6%9C%EC%9D%B4%20%EB%AC%B4%EC%97%87%EC%9D%B8%EC%A7%80%20%EB%B3%B4%EC%97%AC%EC%A3%BC%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F%ED%98%B8%EC%B6%9C%EC%9D%B4%20%EB%AC%B4%EC%97%87%EC%9C%BC%EB%A1%9C%20%EB%B9%8C%EB%93%9C%EB%90%98%EA%B3%A0%20%EC%9E%88%EB%8A%94%EC%A7%80%20%ED%99%95%EC%9D%B8%ED%95%98%EA%B8%B0%20%EC%9C%84%ED%95%B4%20%EB%94%94%EB%B2%84%EA%B9%85%ED%95%98%EA%B3%A0%20%EC%8B%B6%EC%8A%B5%EB%8B%88%EB%8B%A4%20...%3C%2FP%3E%3CP%3E%EC%98%88%EB%A5%BC%20%EB%93%A4%EC%96%B4%2C%20%ED%91%9C%EC%8B%9C(%EB%82%B4%20%EC%9A%94%EC%B2%AD)%3C%2FP%3E%3CP%3E%EB%82%B4%20%EC%9A%94%EC%B2%AD%20%3D%3CA%20href%3D%22https%3A%2F%2Fmay.api.url%2F%3Fusername%3DXXX1234567%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%20https%3A%2F%2Fmay.api.url%2F%3Fusername%3DXXX1234567%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EmyAPIURL%20%3D%20%22https%3A%2F%2Fmy.api.url%2F%22%3B%0A%0AmyRequest%20%3D%20New%20HTTP%20Request(%0A%20URL(myAPIURL)%2C%0A%20Method(%22GET%22)%2C%0A%20Headers(%22username%3A%20XXX1234567%22)%3B%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-605441%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%EB%8D%B0%EC%9D%B4%ED%84%B0%20%EC%A0%91%EA%B7%BC%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Choose Language Hide Translation Bar
justvince
Level III

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

 

 

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

Recommended Articles