Peter Mc
Posts: 0
Joined: Wed May 28, 2014 1:33 am

Using {variables} in url with a settings service

Hi,
I am trying to use templated url and a settings service. can this be done?

for example, in my setting service I have:
siteurl http://myhost.com/status/id/{id}/site...

when I put {siteurl} in the url field I get a 400 error Bad request like so:
{"code":"PTCT022","description":"Error while sending request: Illegal character in path at index 30 : http://myhost.com/status/id/{id}/site..."}

Is there a way of making this work?

Thanks

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Using {variables} in url with a settings service

Hello Peter,

You use URL template correct. But you should also add variables from curly brackets into request parameters. Appery changes them to their values automatically.

Return to “Issues”