equal
deleted
inserted
replaced
112 { |
112 { |
113 if (iContinue) { |
113 if (iContinue) { |
114 TInt err = iRespBodyFile.Open(iFileServ, iParsedFileName.FullName(),EFileWrite); |
114 TInt err = iRespBodyFile.Open(iFileServ, iParsedFileName.FullName(),EFileWrite); |
115 if (err) |
115 if (err) |
116 { |
116 { |
117 DP2("There was an error opening file '%S', err=%d", &iParsedFileName.FullName(), err); |
117 DP2("There was an error=%d opening file '%S'", err, &iParsedFileName.FullName()); |
118 iSavingResponseBody = EFalse; |
118 iSavingResponseBody = EFalse; |
119 iHttpClient->ClientRequestCompleteL(KErrInUse); |
119 iHttpClient->ClientRequestCompleteL(KErrInUse); |
120 User::Leave(err); |
120 User::Leave(err); |
121 } |
121 } |
122 else |
122 else |
220 } break; |
220 } break; |
221 default: |
221 default: |
222 { |
222 { |
223 DP1("<unrecognised event: %d>", aEvent.iStatus); |
223 DP1("<unrecognised event: %d>", aEvent.iStatus); |
224 // close off the transaction if it's an error |
224 // close off the transaction if it's an error |
225 if (aEvent.iStatus < 100) |
225 if (aEvent.iStatus < 0) |
226 { |
226 { |
227 iRespBodyFile.Close(); |
227 iRespBodyFile.Close(); |
228 aTransaction.Close(); |
228 aTransaction.Close(); |
229 iHttpClient->ClientRequestCompleteL(aEvent.iStatus); |
229 iHttpClient->ClientRequestCompleteL(aEvent.iStatus); |
230 } |
230 } |
240 return KErrNone; |
240 return KErrNone; |
241 } |
241 } |
242 |
242 |
243 void CHttpEventHandler::SetSaveFileName(const TDesC &fName, TBool aContinue) |
243 void CHttpEventHandler::SetSaveFileName(const TDesC &fName, TBool aContinue) |
244 { |
244 { |
|
245 DP1("CHttpEventHandler::SetSaveFileName, aContinue=%d", aContinue); |
245 iFileName.Copy(fName); |
246 iFileName.Copy(fName); |
246 iContinue = aContinue; |
247 iContinue = aContinue; |
247 } |
248 } |
248 |
249 |
249 void CHttpEventHandler::DumpRespHeadersL(RHTTPTransaction& aTrans) |
250 void CHttpEventHandler::DumpRespHeadersL(RHTTPTransaction& aTrans) |