bugfixes in drivers

This commit is contained in:
zolliker
2011-08-29 11:55:12 +00:00
parent b0fca0f96f
commit 01ecc51a4a
7 changed files with 259 additions and 42 deletions

View File

@ -157,7 +157,7 @@ static void sendPost(pHttpProt pHttp, char *path, char *data)
snprintf(buffer,1024,"POST %s HTTP/1.1\r\nHost: %s\r\nConnection: keep-alive\r\n",
path, hostname);
ANETwrite(pHttp->sockHandle, buffer,strlen(buffer));
snprintf(buffer,1024,"Content-Length: %d\r\n", strlen(data));
snprintf(buffer,1024,"Content-Length: %d\r\n", (int)strlen(data));
ANETwrite(pHttp->sockHandle, buffer,strlen(buffer));
sendAuth(pHttp);
ANETwrite(pHttp->sockHandle,data,strlen(data));