gba/gbaserver/src/dataretriever.cpp
branchRCL_3
changeset 5 3b17fc5c9564
parent 0 164170e6151a
child 21 09b1ac925e3f
equal deleted inserted replaced
1:d5423fbb4f29 5:3b17fc5c9564
   827         {
   827         {
   828         case HTTP::EDigest:
   828         case HTTP::EDigest:
   829            {
   829            {
   830            THTTPHdrVal requestUri;
   830            THTTPHdrVal requestUri;
   831            RHTTPTransactionPropertySet propSet = aTransaction.PropertySet();
   831            RHTTPTransactionPropertySet propSet = aTransaction.PropertySet();
   832            propSet.Property( stringPool.StringF(HTTP::EUri,RHTTPSession::GetTable()), requestUri );
   832            TBool exist = propSet.Property( stringPool.StringF(HTTP::EUri,RHTTPSession::GetTable()), requestUri );
       
   833            
       
   834            if(!exist)
       
   835                {
       
   836                CleanupStack::PopAndDestroy( pushCount ); 
       
   837                return KErrNotFound;
       
   838                }
       
   839            
   833            //save rsp auth calcuation
   840            //save rsp auth calcuation
   834            //Save the string handle for rsp auth checking
   841            //Save the string handle for rsp auth checking
   835            //Close the previous handle, then set new one
   842            //Close the previous handle, then set new one
   836            iUsername.Close();
   843            iUsername.Close();
   837            iUsername = username.Copy();
   844            iUsername = username.Copy();
   904     
   911     
   905     for ( TInt i = 0; i < parts; i++ )
   912     for ( TInt i = 0; i < parts; i++ )
   906     {
   913     {
   907     THTTPHdrVal fieldVal;// The name of the current field.
   914     THTTPHdrVal fieldVal;// The name of the current field.
   908     THTTPHdrVal hdrVal;//A scratch hdrVal
   915     THTTPHdrVal hdrVal;//A scratch hdrVal
   909     headers.GetField(wwwAuthenticate, i, fieldVal);
   916     
       
   917     TInt error = headers.GetField(wwwAuthenticate, i, fieldVal);
       
   918     
       
   919     if(error != KErrNone)
       
   920         {
       
   921         return KErrNotFound;
       
   922         }
       
   923     
   910     switch ( fieldVal.StrF().Index(RHTTPSession::GetTable() ) )
   924     switch ( fieldVal.StrF().Index(RHTTPSession::GetTable() ) )
   911         {
   925         {
   912         case HTTP::EDigest:
   926         case HTTP::EDigest:
   913             {
   927             {
   914             // It is Digest, let us check realm, nonce, qop then
   928             // It is Digest, let us check realm, nonce, qop then