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

POST not working #34

Open
meulencv opened this issue Jun 11, 2023 · 1 comment
Open

POST not working #34

meulencv opened this issue Jun 11, 2023 · 1 comment

Comments

@meulencv
Copy link

Hello,
I'm having problems using the post.
I have tried on web

 [...]

 Map body = {
        'text': message.text,
        'apikey': APIKEY,
      };

      EventSource eventSource = await EventSource.connect(
          "myserverurl.com", client: new BrowserClient(),
          body: jsonEncode(body));
      // listen for events
      eventSource.listen((Event event) async {

     [...]

My server is not receiving the post variables
Hopefully it can be fixed
Thanks :)

@Aluomolo
Copy link

It might be that in the browser environment, HTTP GET requests cannot carry a body.

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

2 participants