symbian 使用http get post方式获取网页信息
2010-05-31 19:38:00 来源:WEB开发网383. //
384. // Inherited from MHTTPDataSupplier
385. // Called by framework to reset the data supplier. Indicates to the data
386. // supplier that it should return to the first part of the data.
387. // In practise an error has occured while sending data, and framework needs to
388. // resend data.
389. // ----------------------------------------------------------------------------
390. TInt CClientEngine::Reset()
391. {
392. // Nothing needed since iPostData still exists and contains all the data.
393. // (If a file is used and read in small parts we should seek to beginning
394. // of file and provide the first chunk again in GetNextDataPart() )
395. return KErrNone;
396. }
397.
398. // ----------------------------------------------------------------------------
399. // CClientEngine::OverallDataSize()
400. //
401. // Inherited from MHTTPDataSupplier
402. // Called by framework. We should return the expected size of data to be sent.
403. // If it's not know we can return KErrNotFound (it's allowed and does not cause
404. // problems, since HTTP protocol allows multipart bodys without exact content
405. // length in header).
406. // ----------------------------------------------------------------------------
407. TInt CClientEngine::OverallDataSize()
408. {
409. if(iPostData)
410. return iPostData- >Length();
411. else
412. return KErrNotFound ;
413. }
414. // ----------------------------------------------------------------------------
415. // CClientEngine::GetCredentialsL()
416. //
417. // Inherited from MHTTPAuthenticationCallback
更多精彩
赞助商链接