andrea

Show in context Administrator User since 2016
Edited 5 years ago by andrea

Hi, in the new version 1.0b21 released today contains various improvements to the HTTPRequest class.

If you need variable components of the path, you can now add entries in the path section of the parameters in the inspector (see attached image). Then you can move the token at the desired position of the path. The HTTPRequest instance will replace this token with the current value of that property when executing the run() method. If you want to change the value of that token, you can set it programmatically with the name of the token, for example for a token named recordID you can do:

HTTPClient1.Request.recordID = 12345;

Or you can change the path tokens by overriding the value of the pathParameters Map:

HTTPClient1.Request.pathParameters = ["recordID" : "12345"];

@VinDo, can you please give me more datails on this issue:

(I'm using a variation of the LetsCook tutorial - using a HTTPClient instead of the local SQL - and still struggling to get the HTTPRequest to update the second window...)