Skip to content
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

want feature http post request #316

Open
hansju-11 opened this issue Feb 23, 2023 · 5 comments
Open

want feature http post request #316

hansju-11 opened this issue Feb 23, 2023 · 5 comments

Comments

@hansju-11
Copy link

I'm looking for a way to send a http request as a client to the server via post. My server only use post not get method.

Example:
curl https://....mynetworkprovider..../api/v3/events -X POST -H "Authorization: mypassword token" -H "Accept: text/event-stream" --data '{"identifiers":[{"ids":{"id":"12345678"}}]}'

@Patrick762
Copy link

Seems like this will not be added:

#292
#112
#138

Do you want to use this repo with The Things network? I tried that, but the events don't work, even with the POST request added

@hansju-11
Copy link
Author

hansju-11 commented Mar 16, 2023

Hello @Patrick762 . yes I want to use it with 'The Things network".
Do you have a working solution for that?

@blerrgh
Copy link

blerrgh commented Mar 30, 2023

I'd also find POST support incredibly useful. There are lots of use cases for wanting to be able to send POST data to initiate an event stream response. I wish the devs would reconsider adding it as an option.

@LoopControl
Copy link

LoopControl commented Jun 6, 2023

The OpenAI GPT / ChatGPT API uses POST to return an EventSource stream ( https://platform.openai.com/docs/api-reference/completions/create ).

Not supporting POST on it makes this library useless for it.

Please reconsider supporting POST as in #292 .

cc @aslakhellesoy

@fasblom
Copy link

fasblom commented Jan 27, 2024

Would be great to have support for POST as it has become a "de facto" standard in some services like ChatGPT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants