else\r
authorizationHeader[0] = '\0';\r
\r
+ printf(\r
+ "GET %s HTTP/1.1\r\n"\r
+ "Host: %.*s\r\n"\r
+ "%s"\r
+ "\r\n",\r
+ url,\r
+ host.len, host.ptr,\r
+ authorizationHeader);\r
+\r
mg_printf(conn->connection,\r
"GET %s HTTP/1.1\r\n"\r
"Host: %.*s\r\n"\r
else\r
authorizationHeader[0] = '\0';\r
\r
+ printf(\r
+ "POST %s HTTP/1.0\r\n"\r
+ "Host: %.*s\r\n"\r
+ "%s"\r
+ "Content-Type: application/json\r\n"\r
+ "Content-Length: %d\r\n"\r
+ "\r\n"\r
+ "%s"\r
+ "\r\n",\r
+ url,\r
+ host.len, host.ptr,\r
+ authorizationHeader,\r
+ strlen(requestBuffer),\r
+ requestBuffer);\r
+\r
mg_printf(conn->connection,\r
"POST %s HTTP/1.0\r\n"\r
"Host: %.*s\r\n"\r
else\r
authorizationHeader[0] = '\0';\r
\r
+ \r
+ printf(\r
+ "PUT %s HTTP/1.0\r\n"\r
+ "Host: %.*s\r\n"\r
+ "%s"\r
+ "Content-Type: application/json\r\n"\r
+ "Content-Length: %d\r\n"\r
+ "\r\n"\r
+ "%s"\r
+ "\r\n",\r
+ url,\r
+ host.len, host.ptr,\r
+ authorizationHeader,\r
+ strlen(requestBuffer),\r
+ requestBuffer);\r
+\r
mg_printf(conn->connection,\r
"PUT %s HTTP/1.0\r\n"\r
"Host: %.*s\r\n"\r