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
This commit is contained in:
parent
94d5ac0a57
commit
823587d73e
@ -373,11 +373,11 @@ bool http_post(const char* server, const char* remote_file,
|
|||||||
bool ok = connection != 0;
|
bool ok = connection != 0;
|
||||||
if (ok)
|
if (ok)
|
||||||
{
|
{
|
||||||
ok = client.HttpPostFile(remote_file, local_file, authorization) != 0;
|
ok = client.HttpPostFile(connection, remote_file, local_file, authorization) != 0;
|
||||||
client.RemoveConnection(connection);
|
client.RemoveConnection(connection);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
{
|
{
|
||||||
DWORD dwSize;
|
size_t dwSize = 0;
|
||||||
const char* err = (const char*)client.GetBuffer(dwSize);
|
const char* err = (const char*)client.GetBuffer(dwSize);
|
||||||
error_box("Impossibile spedire il file %s al server %s:\n%s",
|
error_box("Impossibile spedire il file %s al server %s:\n%s",
|
||||||
local_file, server, err);
|
local_file, server, err);
|
||||||
|
@ -853,6 +853,7 @@ bool TSocketClient::HttpSoap(CONNID id, const char* cmd)
|
|||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL TSocketClient::HttpPostFile(CONNID id, const char* remote, const char* local, const char* authorization)
|
BOOL TSocketClient::HttpPostFile(CONNID id, const char* remote, const char* local, const char* authorization)
|
||||||
{
|
{
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user