Skip to main content

How to pass parameters to a URL in the HTTP Client Origin

  • August 24, 2021
  • 0 replies
  • 636 views

Drew Kreiger
Rock star
Forum|alt.badge.img

Question:

How do I pass parameters to a URL in the HTTP Client origin?  For example, I want to parameterize query, time and endtime in the following URL:

https://www.google.com/search?q=modern+farmhouse+dining+table&time=123&endtime=456

 

Answer:

You can define runtime parameters or runtime resources to parameterize your URL in the HTTP Client Origin.  Documentation on defining runtime resources is located here.  This is an example configuration where one value is defined in the pipeline config and another value is defined as a runtime resource embedded in a configuration file. 

parameterize_http_origin.png

The resource URL in the HTTP tab of the HTTP Client origin is now defined as:

https://www.google.com/search?q=${query}&time=${time}&endtime=${endtime}

 

Vu Trang

July 17, 2019 12:41