W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2001

RE: I don't get body when doing a POST-Request and HTTP-Status=400

From: Kroemer, Jochen <Jochen.Kroemer@t-systems.de>
Date: Thu, 19 Jul 2001 14:55:31 +0200
Message-Id: <6D710682FA1DD511AEB100D0B7E0274D46F496@U8NM9.bmbg01.telekom.de>
To: www-lib@w3.org
it works!

Thanks a lot

From: Steinar Bang [mailto:sb@metis.no]

--- snip
>> HTChunk_data(result_chunk) is NULL. So I'm not able to fetch the
>> error description. (Same result, when using example-program
>> postform.c)
>What I do, is to create a stream where I want an eventual debug
>message to show up, and then add it to all outgoing requests with the
>following statements:
>	    HTRequest_setDebugStream(request, debug);
>	    HTRequest_setDebugFormat(request, WWW_SOURCE);
>(where "debug" is the HTStream* where you want the error message to
>end up)
--- snip
>> Any hints how I can get the header and body with a POST-request too?

>Maybe you can adjust the default output format of the POST request?
>Maybe calling
>	HTRequest_setOutputFormat(request, WWW_RAW);
>on requests before sending them will do the trick?
Received on Thursday, 19 July 2001 08:55:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:54 UTC