-
Notifications
You must be signed in to change notification settings - Fork 13.3k
HTTP POST problem #2678
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
Comments
Hi @GolPesar132 . Do you test this request in POSTMAN? is for discard that the service in php is good or you missing any parameters. |
No I didn't test in postman. Because i had a host for this. I didn't miss any parameter. I don't know what do you mean about "is for discard that the service in php is good". |
I test it use POSTMAN and its OK. I don't know why it tell give this error. how can I solve it? |
Try add another header. |
I try both of them but these don't work again. |
Try using WifiClient, like in this comment 👍 |
The relevant section of your code is right here:
You set up your POST, then erroneously To fix your code you will need to rethink what you are doing, start by removing your first |
@jamesmarlowe Thanks for your guide. |
No problem, it's impossible to say what's wrong without your environment, but perhaps a complete POST example will help you see what you are missing: https://github.com./esp8266/Arduino/blob/master/tests/device/test_http_client/test_http_client.ino#L52 |
@GolPesar132 this is not the right place to ask for help with your particular code. This is an issue tracker, meant for tracking issues in the core code. If you still need help, please refer to a community forum. |
I have have a problem to send something use POST method and then read the page. my code is below:
when i run it i get the 411 error code. whats wrong here? how can i solve it?
The text was updated successfully, but these errors were encountered: