Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
64 views

I'm using ASP.NET 4.8. Request.ServerVariables["remote_addr"] is not working in Chromium-based browsers like Edge and Chrome. However, the same code is working absolutely fine in Firefox. ...
Satyajit Prakash's user avatar
0 votes
0 answers
690 views

In classic ASP, the way to loop through all request's server variables was like this: for each x in Request.ServerVariables response.write(x & " = " & Request.ServerVariables(x) &...
Andres's user avatar
  • 192
0 votes
1 answer
280 views

When I use Request.ServerVariables("CERT_SUBJECT") I end up getting something like this as a string: C=US, O=XXX, OU=XXX, OU=XXX, OU=XXX, CN=DOE.JOHN.JACOB.9999999 what does the value C=US ...
Carlos Mendieta's user avatar
0 votes
1 answer
177 views

I'm having an issue with the following ASP Server Variable: Request.ServerVariables("HTTP_X_ORIGINAL_URL") It is removing instances of multiple forward slashes, so the following URI: /here/is//my/...
Boomfelled's user avatar
0 votes
1 answer
223 views

I'm new to this old scripting language but it's all we have right now. I'm trying to get this code work. I would like to compare USERID servervariable with the same USERID from a recordset, then if ...
Dax's user avatar
  • 11
2 votes
1 answer
912 views

How can I populate/imitate server variables in PHPUnit Test cases using Symfony3? I try to create functional tests for my symfony3 application. I use LiipFunctionalTestBundle. I have a special $...
Zoltán Süle's user avatar
-1 votes
1 answer
89 views

I have a welcome head <h2>welcome</h2> But I pretend get welcome to the NT logged user this <h2>Welcome <%response.write request.servervariables("LOGON_USER")%></h2> ...
KikoFHM's user avatar
  • 112
-1 votes
1 answer
747 views

Sometimes my application is getting UserAgent in the server variable HTTP_USER_AGENT. What does it mean and why it could not get my users browser information ?
Mohamed Farrag's user avatar
0 votes
1 answer
2k views

I have a classic ASP Web application that's been running on a Windows Server 2003 server with IIS 6.0 for several years. I have to move it to a Windows Server 2008 server with IIS 7.0. I've got it ...
Richard Adams's user avatar
0 votes
1 answer
4k views

I'm trying to get authenticated username in my ASP.NET page using Request.ServerVariables(“LOGON_USER”) variable. It gives me an empty string. There are a lot of topics about this variable. The common ...
Ned's user avatar
  • 1,247
0 votes
1 answer
667 views

i am trying to create a custom servervariable with url rewrite. Url Rewrite for IIS generates the following config entry <rewrite> <rules> <rule name="CName to ...
Bongo's user avatar
  • 3,212
1 vote
1 answer
123 views

I have the following javascript which works fine for the most part. It gets the user that has logged in to the site and returns their DOMAIN\username info. The problem arises when the username starts ...
AMadKinnon's user avatar
0 votes
2 answers
1k views

So I have some code running an IP check to ensure an ADMIN account cannot have access from outside my network. string strIP = Request.ServerVariables["REMOTE_ADDR"]; if ( (strIP.Substring(0, 9) !=...
Analytic Lunatic's user avatar
1 vote
0 answers
7k views

I have an ascx control which contains in markup: <a href="<%# GetName() %>"> In the ascx.cs codebehind file I have the following: protected string GetName() { return HttpContext....
Jaap's user avatar
  • 71
2 votes
1 answer
8k views

I need to set the HTTP_X_FORWARDED_FOR value in the Request.ServerVariables collection. I'm trying with Fiddler (see this article). So I set up a custom HTTP request: GET http://myhost/ HTTP/1.1 ...
Alberto De Caro's user avatar
2 votes
1 answer
1k views

I have mocked Server Variables which are used in Controller. request.SetupGet(x => x.ServerVariables) .Returns(new System.Collections.Specialized.NameValueCollection { {"...
Jyoti Varma's user avatar
2 votes
3 answers
2k views

I am working on some error handling code and I want to determine if its a local connection (developer) or not. Typically I look at HttpContext.Current.Request.ServerVariables however in the error ...
Aaron Silverman's user avatar
4 votes
3 answers
3k views

Simple question but one i need to clarify for myself. In terms of collections that can be accessed in the request object there is: Cookies: (whats in a text file in the browser) Querystring: (...
Exitos's user avatar
  • 29.9k
0 votes
2 answers
1k views

Hi I need to check whether the http_referer is the same site as the current site. I have the following code Dim strReferer As String strReferer = Request.ServerVariables("HTTP_REFERER") If ...
Tom's user avatar
  • 13k
0 votes
1 answer
1k views

I've been asked to write code to track IP addresses of visitors to one of my company's online applications in .NET. This is actually the second one I've done, having done another site late last year. ...
Mike's user avatar
  • 417
0 votes
1 answer
794 views

xsl server variable URL returns null. I tried all the other server variable and they all returns nulls. Is there anything I need to do (like in IIS or web.config) in order for xsl to show server ...
Dan 's user avatar
  • 1
0 votes
1 answer
1k views

I've got a piece of tracking code which is capturing REMOTE_HOST, SERVER, REQUEST_METHOD, SCRIPT_NAME and QUERY_STRING. It grabs these from ServerVariables and sticks them in a database by user and IP....
BuddyJoe's user avatar
  • 71.4k
1 vote
2 answers
12k views

When is the apropriate time (part of code) that i can gather information from servervariables? I mean, i have tried calling this string temp = Request.ServerVariables.Get("HTTP_REMOTE_USER"); in the ...
Trimack's user avatar
  • 4,253
2 votes
2 answers
1k views

I have a custom sharepoint app whose security model depends on an HTTP header. When a request is made from the mobile device, an http header called HTTP_RIM_DEVICE_EMAIL is added to each request. I ...
Dave Harding's user avatar
  • 1,400