From 823587d73eb7f861bd69e752d876d8a7188f268f Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 26 Feb 2003 09:51:05 +0000 Subject: [PATCH] Patch level : 2.0 nopatch Files correlati : Ricompilazione Demo : [ ] Commento : Corretta HTTP_POST git-svn-id: svn://10.65.10.50/trunk@10861 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/isamrpc.cpp | 4 ++-- include/netsock.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/isamrpc.cpp b/include/isamrpc.cpp index d836c48f7..17c39de81 100755 --- a/include/isamrpc.cpp +++ b/include/isamrpc.cpp @@ -373,11 +373,11 @@ bool http_post(const char* server, const char* remote_file, bool ok = connection != 0; if (ok) { - ok = client.HttpPostFile(remote_file, local_file, authorization) != 0; + ok = client.HttpPostFile(connection, remote_file, local_file, authorization) != 0; client.RemoveConnection(connection); if (!ok) { - DWORD dwSize; + size_t dwSize = 0; const char* err = (const char*)client.GetBuffer(dwSize); error_box("Impossibile spedire il file %s al server %s:\n%s", local_file, server, err); diff --git a/include/netsock.cpp b/include/netsock.cpp index 11a9d703e..fed740d9b 100755 --- a/include/netsock.cpp +++ b/include/netsock.cpp @@ -853,6 +853,7 @@ bool TSocketClient::HttpSoap(CONNID id, const char* cmd) } return ok; } + BOOL TSocketClient::HttpPostFile(CONNID id, const char* remote, const char* local, const char* authorization) { bool ok = false;