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

Question: libwww & POST with redirect and basic auth

From: Erik Lotspeich <erik@lotspeich.org>
Date: Fri, 5 Nov 2004 01:28:51 +0000 (UTC)
To: www-lib@w3.org
Message-ID: <Pine.LNX.4.60.0411050124350.9135@shrimp.lotspeich.org>


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:





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.



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

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