Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[轉載] [BCB] 請問 TNMHTTP->Post 的用法 ..

0 views
Skip to first unread message

吸收

unread,
Mar 7, 2001, 10:42:56 AM3/7/01
to
[1;37m【 以下文字轉載自 [32mprogramming [37m討論區 】
【 原文由 [32m ahpei [37m 所發表 】 [m

請問 BCB 裡 TNMHTTP 的 Post 該怎麼用 ?

我試了兩種方法, 都不行說 :(

(方法一)

NMHTTP1->Post( URL , "LoginName=abc&num=123&Date=2001/03/07 );
結果用 Request->ContentFields->Values[""] 不能抓到各別的值

(方法二)

TStringList * lst = new TStringList();
lst->Add("LoginName=abc");
lst->Add("num=123");
lst->Add("Date=2001/03/07");
NMHTTP1->Post( URL , lst->Text );
結果還是一樣無法抓到 :~~

謝謝告之 :)


p/s : 若用 html 的 form來submit, 可以正確的抓到值..

[m [1;33m※ 來源:‧大紅花的國度 MSIA.pine.ncu.edu.tw‧[FROM: thccy11.Oz.nthu.edu.] [m
--
[m [1;33m※ 轉載:‧大紅花的國度 MSIA.pine.ncu.edu.tw‧[FROM: thccy11.Oz.nthu.edu.] [m

0 new messages