【发布时间】:2016-03-11 11:24:37
【问题描述】:
我正在尝试将 post 变量发送到我要重定向到的 url。
我目前正在使用 Get 方法并像这样发送它:
// Redirect to page with url parameter (GET)
Response.Redirect("web pages/livestream.aspx?address="+ ((Hardwarerecorders.Device)devices[arrayIndex]).streamAddress);
然后像这样检索它:
// Get the url parameter here
string address = Request.QueryString["address"];
如何转换我的代码以使用 POST 方法?
B.T.W.,我不想使用表单来发送 post 变量。
【问题讨论】:
-
尝试使用 webclient 类并发出请求。
-
@PiyushKhatri 你能举个例子吗