0
我正在編程嘗試POST到Web服務。我面臨的問題是我發佈的數據。
儘管POST數據的編碼
string post_data = "man=HE&game=01&&address=123 Main St.&cap=1,2,3,4";
new ASCIIEncoding().GetBytes(post_data)
它沒有得到轉化爲
man=HE&game=01&&address=123+Main+St.&cap=1%2C2%2C3%2C4
什麼是解決它的最好方法?
在這個例子中,他們需要編碼單個參數,而不是整個字符串。 – Matthew
@Matthew你是絕對正確的! –