javacommons/gcfprotocols/http/src.s60/chttptransactionclient.cpp
changeset 23 98ccebc37403
parent 21 2a9601315dfc
child 35 85266cc22c7f
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
   293         }
   293         }
   294         else
   294         else
   295         {
   295         {
   296             TInt err = headers.GetRawField(fieldNameStr,rawFldPtr);
   296             TInt err = headers.GetRawField(fieldNameStr,rawFldPtr);
   297 
   297 
   298             // Work around for DRM download
       
   299 //          RStringF contentType = strP.StringF(HTTP::EContentType,RHTTPSession::GetTable());
       
   300 //          if (fieldNameStr == contentType)
       
   301 //          {
       
   302 //                  LOG(ESOCKET,EInfo,"content type header is  present");
       
   303 //                  TInt index = rawFldPtr.Match(KDRMHeader1);
       
   304 //                  //  LOG1(ESOCKET,EInfo,"rawFldPtr = %s ",rawFldPtr.str());
       
   305 //                      LOG1(ESOCKET,EInfo,"index of drm header is = %d",index);
       
   306 //              if(index == 0)
       
   307 //              {
       
   308 //                      iDrmDownload = true;
       
   309 //              }
       
   310 //              else
       
   311 //              {
       
   312 //                      index = rawFldPtr.Match(KDRMHeader2);
       
   313 //                      if(index == 0)
       
   314 //                              iDrmDownload = true;
       
   315 //              }
       
   316 //          }
       
   317             if (err==KErrNone)
   298             if (err==KErrNone)
   318             {
   299             {
   319                 rawFieldLength += fieldNameStr.DesC().Length();
   300                 rawFieldLength += fieldNameStr.DesC().Length();
   320                 rawFieldLength += 2;//KSeperator Length;
   301                 rawFieldLength += 2;//KSeperator Length;
   321                 rawFieldLength += rawFldPtr.Length();
   302                 rawFieldLength += rawFldPtr.Length();
   330         ++it;
   311         ++it;
   331     }
   312     }
   332     while (!it.AtEnd());
   313     while (!it.AtEnd());
   333 }
   314 }
   334 
   315 
   335 // RHTTPResponse CHttpTransactionClient::GetResponseL()
   316 
   336 //  {
       
   337 //  LOG(ESOCKET,EInfo,"CHttpTransactionClient::GetResponseL");
       
   338 //  return iTransaction.Response();
       
   339 //  }
       
   340 /*
   317 /*
   341 * Returns the total number of bytes read into the buffer,
   318 * Returns the total number of bytes read into the buffer,
   342 * or -1 if there is no more data because the end of the stream
   319 * or -1 if there is no more data because the end of the stream
   343 * has been reached.
   320 * has been reached.
   344 */
   321 */
   736 }
   713 }
   737 
   714 
   738 
   715 
   739 void CHttpTransactionClient::CloseTransaction()
   716 void CHttpTransactionClient::CloseTransaction()
   740 {
   717 {
   741     //__ASSERT_DEBUGCOMP(iJavaWaitingOnCallBack==EFalse, User::Panic(_L("Http Java Waiting on notification"), KErrGeneral ));
       
   742     LOG(ESOCKET,EInfo,"CHttpTransactionClient::CloseTransaction + ");
   718     LOG(ESOCKET,EInfo,"CHttpTransactionClient::CloseTransaction + ");
   743     iClosing=ETrue;
   719     iClosing=ETrue;
   744     if (!iReleasedData)
   720     if (!iReleasedData)
   745     {
   721     {
   746         LOG(ESOCKET,EInfo,"CHttpTransactionClient::CloseTransaction NOT RELEASED DATA!!! release and close");
   722         LOG(ESOCKET,EInfo,"CHttpTransactionClient::CloseTransaction NOT RELEASED DATA!!! release and close");