how can I use '&' in client.request() url property? | Community
Skip to main content

how can I use '&' in client.request() url property?

  • March 21, 2024
  • 1 reply
  • 0 views

When I send the request using Postman or the fetch API, it works as expected and returns the desired response. However, with the ZAF client, I receive an error due to the '&' character in the URL.

I've tried using the encodeURIComponent() function, but the issue persists.

I'm wondering if there is a specific configuration or option within the ZAF client that can handle this encoding issue. Any insights or suggestions would be greatly appreciated!

1 reply

  • Author
  • March 31, 2024

Hi Ryan,

Thanks for your suggestion.

I solved the problem by using a method of encoding only query parameters.
I was encoding the entire url.