請問 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