diff -r c0c2f28ace9c -r a0da872af3fa applayerprotocols/httptransportfw/Test/testfilter/testhttpfilter.cpp --- a/applayerprotocols/httptransportfw/Test/testfilter/testhttpfilter.cpp Tue Aug 31 15:44:10 2010 +0300 +++ b/applayerprotocols/httptransportfw/Test/testfilter/testhttpfilter.cpp Wed Sep 01 12:21:21 2010 +0100 @@ -18,15 +18,17 @@ #include #include #include +//#include //for base64 en/decoding #include #include #include #include -#include //for base64 en/decoding +#include #include "testhttpfilter.h" _LIT8( KTESTHTTPFilterName, "TestHttp"); _LIT8( KAuthenticationInfoStr, "Authentication-Info" ); _LIT8( KUserAgentProductToken,"3gpp-gba"); +_LIT8( KColon, ":" ); const TInt KB64KeySize = 64; _LIT(KTestHttpFilter, "TEST HTTP FILTER "); @@ -241,6 +243,7 @@ TInt headerPart=0; THTTPHdrVal headerVal; + TInt cred = KErrNotFound; RStringF wwwAuthHeader = iStringPool.StringF(HTTP::EWWWAuthenticate,RHTTPSession::GetTable()); RHTTPHeaders headers(aTrans.Response().GetHeaderCollection()); @@ -317,6 +320,8 @@ if(!found) hdr.SetFieldL(fieldname, iUserAgent); + TInt cred = KErrNotFound; + if( iHaveCredentials ) { TBuf8 keyBase64(_L8("Aladdin"));