From 3cb6ed195c1c2a3e45014e31f2d923eabd88829f Mon Sep 17 00:00:00 2001 From: snowdrop Date: Mon, 18 Apr 2005 20:52:26 +0000 Subject: included the check for errcode = 200 --- libcsoap/soap-client.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libcsoap/soap-client.c b/libcsoap/soap-client.c index fa65864..b704766 100644 --- a/libcsoap/soap-client.c +++ b/libcsoap/soap-client.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: soap-client.c,v 1.14 2004/11/02 23:09:26 snowdrop Exp $ +* $Id: soap-client.c,v 1.15 2005/04/18 20:52:26 snowdrop Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -244,8 +244,11 @@ herror_t return herror_new("_soap_client_build_result", GENERAL_INVALID_PARAM, "Empty response from server"); + if (res->errcode != 200) + return herror_new("_soap_client_build_result", + GENERAL_INVALID_PARAM, "HTTP code is not 200 OK"); - err = soap_env_new_from_stream(res->in, env); + err = soap_env_new_from_stream(res->in, env); if (err != H_OK) { return err; -- cgit v1.1-32-gdbae