void UPPayHttpConnection::GetRequestL(const TDesC& aUri, TInt aStartPos) { iContentStartPos = aStartPos; iContentLength = 0; iStatusCode = -1; //CommonUtils::WriteLogL(_L("F_HttpConnection::GetRequestL:"), aUri); iIsGetMethod = ETrue; ParseUriL(aUri); AddTimer(); SetupConnectionL(); }
void UPPayHttpConnection::PostRequestL(const TDesC& aUri, const TUint8 * aPostData, TInt aDataLen) { iContentStartPos = 0; iContentLength = 0; iStatusCode = -1; if (aPostData && aDataLen > 0) { iPostData = new char[aDataLen]; iPostDataLength = aDataLen; iCurPostDataLength = aDataLen; Mem::Copy(iPostData, aPostData, aDataLen); iIsGetMethod = EFalse; } //CommonUtils::WriteLogL(_L("F_HttpConnection::PostRequestL:"), aUri); //CommonUtils::WriteLogL(_L("F_HttpConnection::PostRequestL:"), aDataLen); ParseUriL(aUri); AddTimer(); SetupConnectionL(); }
void CExampleInetProtUtil::ConstructL() { iConsole = Console::NewL(KTest,TSize(KConsFullScreen,KConsFullScreen)); iConsole->Printf ( KTest ); _LIT(KTextStart, "\nPress any key to step through the example"); iConsole->Printf ( KTextStart ); iConsole->Getch (); //Create an URI CreateUriL(); //Modify URI components ModifyUriComponentsL(); //Resolve ResolveUriL(); //Parse the URI ParseUriL(); //Validate URI components ValidateUriComponentsL(); //Extract URI components ExtractUriComponentsL(); //Retrieve Filename from a given Uri RetrieveFileNameL(); //Add and Trim delimiters ModifyDelimiterL(); //Text Utilities WhiteSpaceRemover(); //Escape encode and decode EscapeEncodeDecodeL(); }