Click here to Skip to main content
13,054,018 members (75,134 online)
Rate this:
Please Sign up or sign in to vote.

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 frame work V2

any help will be appriciated.

Posted 4-Mar-13 20:32pm
Updated 4-Mar-13 20:50pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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...
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 7 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100