Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hello,

I have created a web service which will be installed in a server in one location. There are many client systems in different location who is using it as a web reference.
How to find from whom( I mean , I need to get the refferer URL ) a request is coming to my web service..?

Request.Urireferer is not working.. I am using visual studio.net frame work V2

any help will be appriciated.

Thanks
Posted
Updated 4-Mar-13 20:50pm
v2

VB
Dim ipAddress As String = HttpContext.Current.Request.ServerVariables("HTTP_X_FORWARDED_FOR")
        If ipAddress Is Nothing Or ipAddress = "" Then
            ipAddress = HttpContext.Current.Request.ServerVariables("REMOTE_ADDR")
        End If



working for me...
 
Share this answer
 
I haven't try the following solution from my end but u can definitely try this

Solution :

Dim webServicesClientProtocol1 As WebServicesClientProtocol

Dim returnValue As String
returnValue = webServicesClientProtocol1.Url

Dim sampleValue As String
webServicesClientProtocol1.Url = sampleValue

Please let me know if you not get succeeded in the above solution
 
Share this answer
 
Comments
Naveen_143 7-Mar-13 2:10am    
Thanks for ur response ..I posted my code.. I will try this one also..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900