From 4a4c380d861601dba7d532d1b5820c71839e7062 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Wed, 14 Apr 2004 09:20:36 +0000 Subject: added content-type text/xml as default in soap_client_invoke() --- libcsoap/soap-client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libcsoap') 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); } -- cgit v1.1-32-gdbae