-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Support for "x-www-form-urlencoded" Format in Connector #59
Comments
Hi @aluzet For example, having below body, send by current implementation, how it would look like for x-www-form-urlencoded format?
Cheers. |
Hi @kristoffSC, The query will look like that :
All values will be send inside url. |
And what would be the content of POST body in this case? I'm about to merge #58 that adds a batch request support for HttpSink. In this improvement, one POST/PUT entry will contain an Json Array in its body with many events. I was wondering how "batch" can be expressed here. |
Hi,
You "can" have an array like this :
|
Hi @kristoffSC , Thanks for your feedback. I just got back from vacation, and I'm getting back into this topic. Do you have any additional information about this? If I come up with a good result, I'll suggest pushing the changes here, and you can review and approve them if it suits you. Thanks in advance. |
Hi guys, @aluzet For my end its still hard to grasp how this can/should work in context of the connector. Having and examples from you and @ggekos I still dont fully understand how such request should be expressed. For example in yours example, it seems that arguments are encoded in the path but in @ggekos's example the body contains the argument? Is @ggekos 's example only for batch request? Also the body is a json format or what kind? I can start working on it but I need to understand it better. Also this feature seems to be strongly related with the header type. Currently headers are fully independent entity and have no impact on rest of the processing. For example setting content type header to application-json does not force to use Json format. |
Hello everyone,
Thank you very much for this connector.
I have started some tests with it, and it works really well.
For a project, I need to extend the capabilities of this connector to support a new format. Specifically, I would like to incorporate the ability to send POST requests (via the http-sink) in the "x-www-form-urlencoded" format. While I have started examining the code, I must admit that I'm uncertain about the best approach to proceed. Could you please indicate where in the code I should make modifications or additions?
Additionally, if I succeed in making these changes and if you are interested, I would submit a pull request here.
Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: