Questions tagged [server-variables]
87 questions
1
vote
0 answers
PHP - Alternative to HTTP_REFERER for gathering requesting domain?
I have a simple tracking pixel, used for verifying user accounts:

Birrel
- 4,754
- 6
- 38
- 74
1
vote
2 answers
How to write Response.redirect with Query_string server variables in ASP
I'm trying to redirect users to my mobile page equivalent of a desktop page. Right now I can only get them to the home page.
If b.test(u) or v.test(Left(u,4)) then response.redirect("/mobile.asp") End If
I'd like to redirect to the mobile page with…

testing123
- 761
- 6
- 13
- 37
1
vote
1 answer
How to show the QueryString received by an AJAX HTTP Request
We have a script A which pulls information by sending an HTTPRequest to script B, with some GET parameters.
var URL = "http://domain.com/scriptB?ID="+ID;
var XMLGateway = new ActiveXObject("WinHttp.WinHttpRequest.5.1");
XMLGateway.open("GET",…

Gavin
- 2,214
- 2
- 18
- 26
1
vote
2 answers
Simple PHP Server info request - not working at all
Going off of my other question and its pair.
I'm looking to grab the Hostname:Port value as found in the phpinfo() function. I can't seem to find it anywhere and it's not in $_SERVER.

Josh K
- 28,364
- 20
- 86
- 132
1
vote
1 answer
Implementing url rewriting using .htaccess file without affecting $_SERVER['SCRIPT_NAME']
I want to setup a SaaS(Software as a Service) version of my ERP product. Each of the user who purchases the product can access the product using a url which will be specific for each user (For Example: erp.com/user1/). But there will not be a…

Nobis
- 23
- 4
1
vote
2 answers
Request.ServerVariables["HTTP_HOST"] is null or empty
This is an ASP.NET 2.0 website on IIS 7.5. Below is my global.asax. It has BeginRequest and a static method.
Does anybody see any issue with Request.ServerVariables["HTTP_HOST"] being null or empty?
Global.asax:
<%@ Application Language="C#"…

gbs
- 7,196
- 5
- 43
- 69
1
vote
2 answers
Can $_SERVER['HTTP_USER_AGENT'] value be same for 2 different users?
I am asking a basic question.
Can $_SERVER['HTTP_USER_AGENT'] be same for two different systems if the user does not modify the header information which will be set by the browser?

Krish Gowda
- 193
- 2
- 17
1
vote
3 answers
Accessing Server Tags inside Javascript in MVC project
I'd like to use some server tags inside a Javascript function:
<%=Model.HtmlProperty%>
In the past I have stored this value in a hidden input field, but when a property contains HTML you get problems with special characters such as quotes. I would…

splatto
- 3,159
- 6
- 36
- 69
1
vote
1 answer
How to retrieve custom server variables ASP to JSP
I have two custom server variables that I can see on ASP page:
"HTTP_ONE" and "HTTP_TWO"
How can I retrieve these data on a JSP page when redirected from a classic ASP page? I don't want to use query string or form.
Update:
ASP Page
<%
' Send…

gcfabri
- 564
- 2
- 7
- 28
1
vote
2 answers
Is relying on $_SERVER['HTTP_ACCEPT_LANG'] ok for multilingual support?
Are there any pitfalls or downsides to relying on $_SERVER['HTTP_ACCEPT_LANG'] for language detection?

mmattax
- 27,172
- 41
- 116
- 149
1
vote
1 answer
How to store a value( stored on PHP server variable ) to the extension made on crossrider when it is being installed into browser
Is there any way around to store a value( stored on server variable ) to the extension made on crossrider while the user installs the extension to his browser ? This is something when the user initiates the installation of the browser add-on !!
Say…

Testfname Testlname
- 11
- 1
1
vote
2 answers
Unable to locate ft_min_word_len variable in my local mysql server
I was trying to edit the MySQL server variable ft_min_word_len, but unfortunately i could not find the file location on my hard disk containing these settings
I looked for the files my.ini and my.cnf in MySQL installation directory, in c:\windows…

Sanjay Ojha
- 39
- 4
1
vote
2 answers
Set a ServerVariable in a IIS 7.0 httpmodule
I'm trying to set a servervariable ("LOGON_USER") in a httpmodulle in IIS 7.0, but I'm not archieving it.
My BeginRequest function, so far...
BindingFlags temp = BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static;
…

user1466890
- 21
- 3
1
vote
1 answer
komodo IDE -> remote debug php using komodo+xdebug: how to watch the $_SERVER variable?
I've setup komodo IDE together with xdebug to do remote debugging PHP. Everything is working fine. Now i want to watch some variables while debugging is in progress. I can watch any variables without problem but i couldn't watch any PHP SERVER…

andio
- 1,574
- 9
- 26
- 45
1
vote
2 answers
vbscript not retrieving all server variables
I have a website that was written in VBSCRIPT that I am moving over to VB.NET. Until I have time to get to rewriting some pages/applications, I would like to update some of the code so they work a bit better. I am trying to grab a server variable…

rpmerf
- 161
- 1
- 7