[英]Create HTTP post request and receive response using C# console application
[英]C# create temporary url to receive HTTP request
嗨,我是C#和網站設計的新手。 我正在使用一個控制台應用程序,該應用程序將臨時創建一個有效的URL並在短時間內收到HTTP請求。 有人可以幫忙嗎?
如果我理解正確,則只需對任何調用都建立一個RewritePath 。 可以在global.asax上完成以下操作:
protected void Application_BeginRequest(Object sender, EventArgs e)
{
// Any call, eg WhatEverName.aspx -> it will call the ExistingFile.aspx
HttpContext.Current.RewritePath("ExistingFile.aspx");
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.