W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2001

POST - Permanent Redirection

From: Krishna Kumar <emailkrishnakumar@yahoo.com>
Date: Wed, 21 Nov 2001 00:01:15 -0800 (PST)
Message-ID: <20011121080115.9840.qmail@web13207.mail.yahoo.com>
To: www-lib@w3.org
Hi All,

I'm trying to write a small HTTP client using the
Libwww library. I'm able to get page and post page
properly. the following is the code snippet for
posting the form,

I'm using HTPostFormAnchorToChunk() method for Posting
the form. I've also registered 2 call backs, one for
cookies and one for getting to the teminate_handler .
The following are the registers to the call back

HTCookie_setCallbacks(setCookie, NULL, findCookie,
HTNet_addAfter(terminate_handler, NULL, NULL, HT_ALL,

In case of responses 200s, 302, 400s and 500s, I'm
able to get the control to the terminate_handler
callback method. But in case of a permenent
redirection which is 301, I'm not able to get the
control into the terminate_handler callback method.
Please suggest. I'm even willing to send my code, if
anybody will be able to help me. This is kind of
urgent for my project to get completed. 

Thanks in advance.


Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
Received on Wednesday, 21 November 2001 03:01:16 UTC

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