http url post methode示例 [英] http url post methode example
本文介绍了http url post methode示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
我的任务是我有一个网址,如http://www.trap.com/handler.ashx$agshdgj,67123,sdj*
喜欢这个网址即将到来以及如何将整个网址存储在一个变量中,例如
string st =http:// www .trap.com / handler.ashx $ agshdgj,67123,sdj *
请帮帮我
解决方案
< blockquote> agshdgj,67123,sdj *
就像这个网址即将到来以及如何将整个网址存储在一个变量中,例如
string st =http://www.trap.com/handler.ashx
agshdgj,67123,sdj *
请帮帮我
您好,请使用下面的代码,希望它能为您提供帮助
string url = HttpContext.Current.Request.Url.AbsoluteUri;
// http:// localhost:1302 / TESTERS / Default6.aspx
string path = HttpContext.Current.Request.Url.AbsolutePath;
// /TESTERS/Default6.aspx
string host = HttpContext.Current.Request.Url.Host;
// localhost
Response.Write(url);
Response.Write( < br />);
Response.Write(host);
Response.Write( < br />);
Response.Write(path);
hi
my task is i have one url like http://www.trap.com/handler.ashx$agshdgj,67123,sdj*
like this url is coming and how store the entire url in one variable like
string st="http://www.trap.com/handler.ashx$agshdgj,67123,sdj*"
please help me
解决方案
agshdgj,67123,sdj*
like this url is coming and how store the entire url in one variable like
string st="http://www.trap.com/handler.ashx
agshdgj,67123,sdj*"
please help me
Hi,use below code,hope it will help you
string url = HttpContext.Current.Request.Url.AbsoluteUri; // http://localhost:1302/TESTERS/Default6.aspx string path = HttpContext.Current.Request.Url.AbsolutePath; // /TESTERS/Default6.aspx string host = HttpContext.Current.Request.Url.Host; // localhost Response.Write(url); Response.Write("<br />"); Response.Write(host); Response.Write("<br />"); Response.Write(path);
这篇关于http url post methode示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文