Skip to content

Instantly share code, notes, and snippets.

@funvill
Created November 17, 2015 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save funvill/60b559c6865f408ff3ef to your computer and use it in GitHub Desktop.
Save funvill/60b559c6865f408ff3ef to your computer and use it in GitHub Desktop.
// code
int payloadLength = sprintf(outBuf, "POST %s HTTP/1.1\r\nAuthorization: Basic %s","RW1lcnNvbklEOjEy\r\nContent-Length: %u\r\n\r\n%s", SET_VALUE_URL, "RW1lcnNvbklEOjEy", strlen(thisData), thisData);
// output
POST RW1lcnNvbklEOjEy
Content-Length: %u
%s HTTP/1.1
Authorization: Basic /srvice.cgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment