diff options
author | snowdrop | 2004-04-14 09:20:36 +0000 |
---|---|---|
committer | snowdrop | 2004-04-14 09:20:36 +0000 |
commit | 4a4c380d861601dba7d532d1b5820c71839e7062 (patch) | |
tree | bf696f849ea29a4309a11d624734a9b3724307ea /libcsoap | |
parent | 2dcbad79f0c1324c7c2ef68afab22884c083d97b (diff) | |
download | csoap-4a4c380d861601dba7d532d1b5820c71839e7062.tar.gz csoap-4a4c380d861601dba7d532d1b5820c71839e7062.tar.bz2 |
added content-type text/xml as default in soap_client_invoke()
Diffstat (limited to 'libcsoap')
-rw-r--r-- | libcsoap/soap-client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcsoap/soap-client.c b/libcsoap/soap-client.c index 39b001d..f7e4536 100644 --- a/libcsoap/soap-client.c +++ b/libcsoap/soap-client.c @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: soap-client.c,v 1.2 2004/02/03 08:59:22 snowdrop Exp $ + * $Id: soap-client.c,v 1.3 2004/04/14 09:20:36 snowdrop Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -51,6 +51,10 @@ soap_client_invoke(SoapEnv *call, const char *url, const char *soap_action) /* Transport via HTTP */ conn = httpc_new(); + + /* content-type is always 'text/xml' */ + httpc_set_header(conn, HEADER_CONTENT_TYPE, "text/xml"); + if (soap_action != NULL) { httpc_set_header(conn, "SoapAction", soap_action); } |