equal
deleted
inserted
replaced
71 //open the transaction |
71 //open the transaction |
72 LOG(ESOCKET,EInfo, "CHttpTransactionClient::ConstructL "); |
72 LOG(ESOCKET,EInfo, "CHttpTransactionClient::ConstructL "); |
73 iFlag = 0; |
73 iFlag = 0; |
74 iDrmBuf = HBufC8::NewL(256); |
74 iDrmBuf = HBufC8::NewL(256); |
75 iEndOfRequest = false; |
75 iEndOfRequest = false; |
|
76 iRestartedFlag = false; |
76 OpenTransactionL(aUri , aRequestMethod); |
77 OpenTransactionL(aUri , aRequestMethod); |
77 } |
78 } |
78 |
79 |
79 void CHttpTransactionClient::OpenTransactionL(const TDesC* aUri, const TDesC* aRequestMethod) |
80 void CHttpTransactionClient::OpenTransactionL(const TDesC* aUri, const TDesC* aRequestMethod) |
80 { |
81 { |
127 THTTPHdrVal responseTimeout(respTimeOut); |
128 THTTPHdrVal responseTimeout(respTimeOut); |
128 iTransaction.PropertySet().SetPropertyL(property, responseTimeout); |
129 iTransaction.PropertySet().SetPropertyL(property, responseTimeout); |
129 } |
130 } |
130 |
131 |
131 //Submit the transaction |
132 //Submit the transaction |
132 RHTTPHeaders hdr = iTransaction.Request().GetHeaderCollection(); |
133 if (!iRestartedFlag) |
133 TInt headerCount = aRawHeaders->Count(); |
134 { |
134 for (TInt ii=0; ii < headerCount; ++ii) |
135 RHTTPHeaders hdr = iTransaction.Request().GetHeaderCollection(); |
135 { |
136 TInt headerCount = aRawHeaders->Count(); |
136 SetHeaderL(hdr, (*aRawHeaders)[ii]); |
137 for (TInt ii=0; ii < headerCount; ++ii) |
|
138 { |
|
139 SetHeaderL(hdr, (*aRawHeaders)[ii]); |
|
140 } |
137 } |
141 } |
138 |
142 |
139 //iHttpSession.CustomiseHeadersL(hdr); |
143 //iHttpSession.CustomiseHeadersL(hdr); |
140 |
144 |
141 //Set Data |
145 //Set Data |
701 ELOG1(ESOCKET," CHttpTransactionClient::NotifyErrorL: %d ",aErrorCode); |
705 ELOG1(ESOCKET," CHttpTransactionClient::NotifyErrorL: %d ",aErrorCode); |
702 if ((aErrorCode == KErrNotReady)) |
706 if ((aErrorCode == KErrNotReady)) |
703 { |
707 { |
704 iTransaction.Cancel(); |
708 iTransaction.Cancel(); |
705 iHttpSession.RestartConnection(); |
709 iHttpSession.RestartConnection(); |
|
710 iRestartedFlag = true; |
706 |
711 |
707 } |
712 } |
708 if (iJavaWaitingOnCallBack) |
713 if (iJavaWaitingOnCallBack) |
709 { |
714 { |
710 iJavaWaitingOnCallBack=EFalse; |
715 iJavaWaitingOnCallBack=EFalse; |