castorm/kafka-connect-http

URL encoding of query parameters

abhishekd-sb opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
I need to implement CDC, but the data field I need to pass into the query params is not URL encoded, and so I get a 400 error from the server.

Describe the solution you'd like
URL encode the query parameters within the connector.

Describe alternatives you've considered
None I could think of.

It was an issue with the date field. Resolved by using the freemarker templates. Closing as resolved. Here's what I did -

http.request.params=date%3E=${date_created?datetime("EEE, dd MMM yyyy HH:mm:ss zzzz")?iso_utc}