Layer7 API Management

  • 1.  Need to know request.*?

    Posted Oct 06, 2015 11:06 AM

    Hi,

     

      Can someone please let me know what is the difference between {request.http.uri} and {request.url.query}?

     

      What are the scenarios we can use above 2 things?

     

    Thanks&Regards

    Rajasekhar



  • 2.  Re: Need to know request.*?
    Best Answer

    Posted Oct 13, 2015 06:43 PM

    Hi rajasekhar33,

     

    I apologize for the delay in responding.

     

    ${request.url.query} returns the query portion of the URL for the HTTP request, whereas ${request.http.uri} returns the HTTP URI for the request. In other words, the URI will be the /this/is/a/uri portion and the URL query is the query portion such as ?name=Dustin. I think I can summarize this as the query part is the parameters in the full URL but the URI part is simply the resource path portion minus any parameters that may follow it.

     

    Example:

    https://<exampleHost>:8443/service/URI?name=Dustin

    • The ${request.http.uri} should return the following as a value: /service/URI
    • The ${request.url.query} should return the following as a value: ?name=Dustin

     

    There isn't a lot more information listed to be honest, but just for reference, we do have a page on the Transport Layer Context Variables located at https://wiki.ca.com/display/GATEWAY84/Transport+Layer+Context+Variables for review.

     

    Sincerely,

     

    Dustin Dauncey

    Support Engineer, Global Customer Success

    Email: API-Support@ca.com

    Phone: +1 800 225 5224

    Outside of North America - ca.com/us/worldwide.aspx

    CA API Management Community: ca.com/talkapi



  • 3.  Re: Need to know request.*?

    Posted Oct 21, 2015 05:51 AM

    Thank you Dustin