如何确定Web请求的来源。 [英] How to determine where the web request is coming from.

查看:68
本文介绍了如何确定Web请求的来源。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表中有两个字段webstore_Id和Company_id。



在我的表中插入特定订单时,我必须确定请求来自哪里。例如,有三个商店,一个在悉尼,墨尔本和布里斯班。当我收到请求时,我必须确定请求的来源,然后相应地插入webstore_Id和Company_id。我不知道从哪里开始。任何相关的链接,帮助将不胜感激。



谢谢

I have two fields webstore_Id and Company_id in my table.

While inserting a particular order in my table i have to determine where is the request coming from.For example there are three stores one is in sydney,melbourne and brisbane.when i get a request i have to determine where the request is coming from and then insert the webstore_Id and Company_id accordingly.I have no idea where to start from.Any related links,help would be appreciated.

Thanks

推荐答案

你可以使用HttpRequest.UserHostAddress [ ^ ]


这篇关于如何确定Web请求的来源。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆