Re: Is it possible to use data from the response header to a POST in a subsequent GET?
Status: Alpha
Brought to you by:
coroberti
From: Robert I. <cor...@gm...> - 2008-10-27 18:25:51
|
Hi Gary On Mon, Oct 27, 2008 at 8:13 PM, Gary Fitts <ga...@in...> wrote: > Hello Robert, > > I have my changes working now, although I want to test them a bit more > before letting them out. I'm having one problem, though. In the > application I'm testing, the very first URL is a POST request using a > FORM_STRING. Great! > > > This seems to cause a failure in loader.c, setup_curl_handle_appl(). > The code is copied below. > > When this code is called, cctx->post_data has been allocated but not > initialized, so it's an empty string. This causes the condition "else > if (cctx->post_data && cctx->post_data[0])" to fail, and we drop > through to the "post_data is NULL" error. > > I've fixed this by commenting out the second condition: > else if (cctx->post_data /* && cctx->post_data[0] */) > > So far this seems to work for me, but I wonder if I'm missing > something that might cause an error somewhere else. > Actually, when cctx->post_data is allocated, it should be set zero to the first char, like cctx->post_data[0] = '\0'; You may wish add this fix to your patches. Thanks. Robert |