From 9ddabaa8646f39b2a84027ae653668f8ed8f0548 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 17 Jun 2007 15:51:26 +0000 Subject: POST method was a bit shifted. --- lib/HttpClient.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/HttpClient.cc b/lib/HttpClient.cc index 8e6bb58..45aceb3 100644 --- a/lib/HttpClient.cc +++ b/lib/HttpClient.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: HttpClient.cc,v 1.12 2007-06-17 15:44:25 pixel Exp $ */ +/* $Id: HttpClient.cc,v 1.13 2007-06-17 15:51:26 pixel Exp $ */ #include #include @@ -86,12 +86,13 @@ int HttpClient::Do() throw (GeneralException) { rendered_variables += vars[j]; } b << "Content-Type: application/x-www-form-urlencoded\r\n"; - b << "Content-Length: " + String(rendered_variables.strlen()) + "\r\n\r\n"; + b << "Content-Length: " + String(rendered_variables.strlen()) + "\r\n"; } b << "\r\n"; - b << rendered_variables; + if (do_post) + b << rendered_variables; c = new CopyJob(&b, &Client); WaitFor(timeout); -- cgit v1.2.3