WEB开发网
开发学院手机开发Symbian 开发 symbian 使用http get post方式获取网页信息 阅读

symbian 使用http get post方式获取网页信息

 2010-05-31 19:38:00 来源:WEB开发网   
核心提示:491. // pop and destroy the IAP View492. CleanupStack::PopAndDestroy(commDBView);493. // pop and destroy the database object494. CleanupStack::PopAndDestroy(com

491. // pop and destroy the IAP View

492. CleanupStack::PopAndDestroy(commDBView);

493. // pop and destroy the database object

494. CleanupStack::PopAndDestroy(commDB);

495. // Now we have the iap Id. Use it to connect for the connection.

496. // Create a connection preference variable.

497. TCommDbConnPref connectPref;

498. // setup preferences

499. connectPref.SetDialogPreference(ECommDbDialogPrefDoNotPrompt);

500. connectPref.SetDirection(ECommDbConnectionDirectionUnknown);

501. connectPref.SetBearerSet(ECommDbBearerGPRS);

502. //Sets the CommDb ID of the IAP to use for this connection

503. connectPref.SetIapId(iapID);

504.

505. User::LeaveIfError(iConnection.Start(connectPref));

506.

507. //set the sessions connection info

508. RStringPool strPool = iSession.StringPool();

509. RHTTPConnectionInfo connInfo = iSession.ConnectionInfo();

510.

511. //to use our socket server and connection

512. connInfo.SetPropertyL ( strPool.StringF(HTTP::EHttpSocketServ,

513. RHTTPSession::GetTable() ), THTTPHdrVal (iSocketServ.Handle()) );

514. connInfo.SetPropertyL ( strPool.StringF(HTTP::EHttpSocketConnection,

515. RHTTPSession::GetTable() ),

516. THTTPHdrVal (REINTERPRET_CAST(TInt, &(iConnection))) );

517. }

518. // end of file

/* * ============================================================================ * Name : CClientEngine of ClientEngine.cpp * Part of : HTTP Client Example * Created : 06/20/2006 by Zengyang * Version : 2.0 * Copyright: NetQin * ============================================================================ */ #include < avkon.hrh > #include < aknnotewrappers.h > #include < uri8.h > #include < http.h > #include < chttpformencoder.h >

上一页  9 10 11 12 13 14 15 16 17 18 19  下一页

Tags:symbian 使用 http

编辑录入:coldstar [复制链接] [打 印]
赞助商链接