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

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

 2010-05-31 19:38:00 来源:WEB开发网   
核心提示:299. aTransaction.Close();300. iRunning = EFalse;301. }302. break;303. default:304. // There are more events in THTTPEvent, but they are not usually305. // need

299. aTransaction.Close();

300. iRunning = EFalse;

301. }

302. break;

303. default:

304. // There are more events in THTTPEvent, but they are not usually

305. // needed. However, event status smaller than zero should be handled

306. // correctly since it's error.

307. {

308. TBuf< KInfotextBufferSize > text;

309. if (aEvent.iStatus < 0)

310. {

311. _LIT(KErrorStr, "Error: %d");

312. text.Format(KErrorStr, aEvent.iStatus);

313. // Just close the transaction on errors

314. aTransaction.Close();

315. iRunning = EFalse;

316. }

317. else

318. {

319. // Other events are not errors (e.g. permanent and temporary

320. // redirections)

321. _LIT(KUnrecognisedEvent, "Unrecognised event: %d");

322. text.Format(KUnrecognisedEvent, aEvent.iStatus);

323. }

324. iObserver.ClientEvent(text);

325. }

326. break;

327. }

328. }

329.

330. // ----------------------------------------------------------------------------

331. // CClientEngine::MHFRunError()

332. //

333. // Inherited from MHTTPTransactionCallback

334. // Called by framework when *leave* occurs in handling of transaction event.

335. // These errors must be handled, or otherwise HTTP-CORE 6 panic is thrown.

336. // ----------------------------------------------------------------------------

337. TInt CClientEngine::MHFRunError(TInt aError,

338. RHTTPTransaction /*aTransaction*/,

339. const THTTPEvent& /*aEvent*/)

340. {

341. // Just notify about the error and return KErrNone.

342. TBuf< KInfotextBufferSize > text;

上一页  4 5 6 7 8 9 10 11 12 13 14  下一页

Tags:symbian 使用 http

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