W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2000

RE: post's prompt

From: Esposito, Fabio <Fabio.Esposito@Pathcom.com>
Date: Thu, 20 Apr 2000 15:58:11 -0400
Message-ID: <C1C676AF93F1D311B43E0050DA2485342BFA15@europa.inside.pathcom.com>
To: "'Henrik Frystyk Nielsen'" <frystyk@microsoft.com>
Cc: www-lib@w3.org

Hello, okay I've wrote the following snipit:

/*
**      POST a URL and save the response in a mem buffer
**      ------------------------------------------------
**      Returns chunk if OK - else NULL
*/
PUBLIC HTChunk * HTPostAnchorToChunk (HTParentAnchor * source,
				      HTAnchor * dest,
				      HTRequest * request)
{
  if (source && dest && request) 
  {
    HTChunk * chunk = NULL;
    HTStream * target = HTStreamToChunk(request, &chunk, 0);
    HTRequest_setOutputStream(request, target);

    if(HTPostAnchor(source, dest, request) != NO)
    {
      printf("Returned String:%s\n", HTChunk_toCString(chunk));
      return chunk;
    }
    else 
    {
      HTChunk_delete(chunk);
      return NULL;
    }
  }
  return NULL;
}

The string I get is oddly null.  I also still get the save response prompt.
The data I need is saved at the prompt.  Any Ideas.

Much Thanks

Fabio


> -----Original Message-----
> From:	Henrik Frystyk Nielsen [SMTP:frystyk@microsoft.com]
> Sent:	Thursday, April 20, 2000 12:57 PM
> To:	Esposito, Fabio
> Cc:	www-lib@w3.org
> Subject:	Re: post's prompt
> 
> If you look at what is in HTPostFormAnchorToChunk then it is very easy
> to do the same for what you want - just copy the code and modify it a
> tad.
> 
> Henrik Frystyk Nielsen,
> mailto:frystyk@microsoft.com
> 
> >      Okay, so I can deactivate the prompt, but how do I get at the
> info in
> > the response of my request?  There is a:
> 
Received on Thursday, 20 April 2000 15:58:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:36 GMT