HTTPClient issue with "/"

  1. last year


    14 Sep 2016 User since 2016

    The HTTPClient adds automatically a forward slash "/" to the end of the host uri. This causes issues with API's where you query data.
    Example: ---- This will not work ---- This works

    Can you modify the HTTPClient so it doesn't add the "/" automatically?


  2. marco

    15 Sep 2016 Administrator User since 2016

    Thanks @TheMexican, we'll fix this issue as soon as possible.

  3. marco

    20 Sep 2016 Administrator User since 2016

    Hi @TheMexican, @andrea pointed me that this isn't a real bug because what you should do is to write in HTTPClient and then add a new request (HTTPRequest) with the remaining url part, in this case: v1/data/patients.
    We built HTTP class in a hierarchical way, so on top you can have the host part and each child can specify the url endpoint.
    We probably need to expose that class in a better way but in the meantime you already have a working workaround.

or Sign Up to reply!