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%26nbsp%3B%3A%20Nouvelle%20requ%C3%AAte%20HTTP%26nbsp%3B%3A%20Comment%20voir%20quel%20est%20l'appel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-605455%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EV%C3%A9rifiez%20l'index%20de%20script%20ou%20utilisez%20les%20propri%C3%A9t%C3%A9s%20d'affichage.%20Il%20semble%20qu'il%20n'y%20ait%20que%20deux%20getters%20int%C3%A9ressants%20avant%20l'envoi%26nbsp%3B%3A%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%26nbsp%3B%3A%20Nouvelle%20requ%C3%AAte%20HTTP%26nbsp%3B%3A%20Comment%20voir%20quel%20est%20l'appel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-606271%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EMerci.D'apr%C3%A8s%20ce%20que%20je%20peux%20trouver%2C%20il%20existe%20maintenant%20un%20moyen%20de%20%22montrer%22%20toute%20la%20cha%C3%AEne%20de%20la%20requ%C3%AAte.Je%20commence%20tout%20juste%20%C3%A0%20en%20apprendre%20davantage%20sur%20l'API%2C%20alors%20peut-%C3%AAtre%20que%20mon%20souhait%20n'est%20pas%20une%20demande%20normale%2C%20mais%20je%20pensais%20juste%20qu'il%20serait%20bon%20de%20d%C3%A9boguer.%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%26nbsp%3B%3A%20Nouvelle%20requ%C3%AAte%20HTTP%26nbsp%3B%3A%20Comment%20voir%20quel%20est%20l'appel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-606294%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJe%20comprends%20pourquoi%20tu%20veux%20le%20voir.%20Cela%20ferait%20un%20bon%20article%20de%20liste%20de%20souhaits.%3C%2FP%3E%0A%3CP%3EJe%20pense%20qu'il%20existe%20des%20sites%20Web%20qui%20vous%20renverront%20la%20demande%2C%20mais%20je%20n'ai%20pas%20jou%C3%A9%20avec%20eux.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-605441%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ENouvelle%20requ%C3%AAte%20HTTP%20%3A%20Comment%20voir%20quel%20est%20l'appel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-605441%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EExiste-t-il%20un%20moyen%20de%20montrer%20ce%20que%20sera%20l'appel%26nbsp%3B%3FJe%20voudrais%20d%C3%A9boguer%20pour%20%C3%AAtre%20s%C3%BBr%20de%20la%20nature%20de%20l'appel...%3C%2FP%3E%3CP%3EPar%20exemple%2C%20Afficher(MaDemande)%3C%2FP%3E%3CP%3EMaRequ%C3%AAte%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%3EAcc%C3%A8s%20aux%20donn%C3%A9es%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