- From: Erik Lotspeich <erik@lotspeich.org>
- Date: Fri, 5 Nov 2004 01:28:51 +0000 (UTC)
- To: www-lib@w3.org
Hi, I am using libwww in an application where I POST some data using basic authentication. The response page is not just a regular web page, but a redirect to another page. The problem is that libwww doesn't send the basic authentication credentials when requesting the redirected page. I'd like either of two things: 1. libwww would not handle the redirect and just stop processing as soon as the post is complete 2. handle the redirect and present the proper credentials I have scoured the documentation and have come up with the following bit of code: res_request=HTRequest_new(); response=HTRequest_response(request); HTRequest_setResponse(res_request,response); res_anchor=HTResponse_redirection(response); HTResponse_setRedirection(response,res_anchor); HTBasic_generate(res_request,basic,0); HTLoadAnchor(res_anchor,res_request); The point here was to hopefully "add" the basic credentials to the request for the response page. And of course I'm sure that I'm way off here since this code does nothing. Any help would be greatly appreciated. Regards, Erik. P.S. I haven't forgotten that I owe this list some HOWTO docs on SSL and Basic Auth and POST. Of course, I can add whatever help you all give me to this document; I'll try to complete it soon!
Received on Friday, 5 November 2004 01:29:35 UTC