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%20Nueva%20solicitud%20HTTP%3A%20c%C3%B3mo%20ver%20cu%C3%A1l%20es%20la%20llamada%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-605455%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EVerifique%20el%20%C3%ADndice%20de%20secuencias%20de%20comandos%20o%20use%20las%20propiedades%20de%20demostraci%C3%B3n.%20Parece%20que%20solo%20hay%20dos%20captadores%20de%20inter%C3%A9s%20antes%20del%20env%C3%ADo%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%3A%20Nueva%20solicitud%20HTTP%3A%20c%C3%B3mo%20ver%20cu%C3%A1l%20es%20la%20llamada%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-606271%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EGracias.Por%20lo%20que%20puedo%20encontrar%2C%20ahora%20realmente%20hay%20una%20forma%20de%20%22mostrar%22%20la%20cadena%20completa%20para%20la%20solicitud.Estoy%20empezando%20a%20aprender%20sobre%20la%20API%2C%20as%C3%AD%20que%20tal%20vez%20mi%20deseo%20no%20sea%20una%20solicitud%20normal%2C%20pero%20pens%C3%A9%20que%20ser%C3%ADa%20bueno%20depurarlo.%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%20Nueva%20solicitud%20HTTP%3A%20c%C3%B3mo%20ver%20cu%C3%A1l%20es%20la%20llamada%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-606294%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEntiendo%20por%20qu%C3%A9%20quieres%20verlo.%20Ser%C3%ADa%20un%20buen%20elemento%20de%20la%20lista%20de%20deseos.%3C%2FP%3E%0A%3CP%3ECreo%20que%20hay%20sitios%20web%20que%20le%20devolver%C3%A1n%20la%20solicitud%2C%20pero%20no%20he%20jugado%20con%20ellos.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-605441%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ENueva%20solicitud%20HTTP%3A%20c%C3%B3mo%20ver%20cu%C3%A1l%20es%20la%20llamada%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-605441%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%C2%BFHay%20alguna%20manera%20de%20mostrar%20cu%C3%A1l%20ser%C3%A1%20la%20llamada%3FMe%20gustar%C3%ADa%20depurar%20para%20estar%20seguro%20de%20c%C3%B3mo%20se%20est%C3%A1%20construyendo%20la%20llamada%20...%3C%2FP%3E%3CP%3EP.ej%2C%20Mostrar(MiSolicitud)%3C%2FP%3E%3CP%3EMiSolicitud%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%3EAcceso%20a%20los%20datos%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