-
Notifications
You must be signed in to change notification settings - Fork 141
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
Which is the syntax to post octet-stream and JSON? #78
Comments
I'm assuming you're trying to implement client POST requests...? Are you sending them one after the other (on the same connection)? Are they sent on different connections? What did you try? where are you stuck? There's a simple client example in the examples folder. There's the comment in the example that said If you want to send a second request, set new headers and send another request... just make sure to somehow be able to test for the response cycle (you could simple change the callback used to rotate callbacks according to state). |
Hi, thank you for the fast answer. I'd like to focus first in a simple client POST with JSON. I believe that when I get it working I'll manage to use octet-stream. The json structure is as simple as:
I've sucessfully implemented a client GET as follows:
Then I read the response on
For the aforementioned client GET, the parameter is already set on If I understood you well, your suggestion ins that I should call |
Hi,
I'm trying to implement two HTTP POSTs: one containing some file data (application/octet-stream) and another posting a simple JSON (application/json).
Anyone could provide a sample?
The text was updated successfully, but these errors were encountered: