Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to 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 4-Mar-13 21:32pm
Edited 4-Mar-13 21:50pm
v2
Rate this: bad
good
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...
  Permalink  
Rate this: bad
good
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
  Permalink  
Comments
Naveen_143 at 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
0 OriginalGriff 295
1 DamithSL 265
2 CPallini 235
3 Maciej Los 190
4 George Jonsson 170
0 OriginalGriff 5,415
1 DamithSL 4,422
2 Maciej Los 3,820
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,911


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 7 Mar 2013
Copyright © CodeProject, 1999-2014
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