Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3607742
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:24:51+00:00 2026-05-18T21:24:51+00:00

I am having trouble getting server variables remotely in VB .Net I need to

  • 0

I am having trouble getting server variables remotely in VB .Net I need to basically mimic this PHP Function.


function showvar($string)
{
 if(isset($_SERVER[$string]))
 {
  echo "$string: ".rawurldecode($_SERVER[$string])."\r\n";
 }
}

/*normal vars*/
showvar("HTTP_ACCEPT");
showvar("HTTP_ACCEPT_ENCODING");
showvar("HTTP_ACCEPT_LANGUAGE");
showvar("HTTP_ACCEPT_CHARSET");
showvar("HTTP_HOST");
showvar("HTTP_KEEP_ALIVE");
showvar("HTTP_COOKIE");
showvar("HTTP_UA_CPU");
showvar("HTTP_REFERER");

/*important vars*/
showvar("HTTP_USER_AGENT");
showvar("REMOTE_ADDR");
showvar("REMOTE_HOST");
showvar("HTTP_CONNECTION");
showvar("HTTP_X_FORWARDED_FOR");
showvar("HTTP_FORWARDED");
showvar("HTTP_VIA");
showvar("KEEP_ALIVE");  
showvar("HTTP_MAX_FORWARDS");
showvar("MAX_FORWARDS");
showvar("HTTP_CACHE_CONTROL");
showvar("HTTP_PROXY_CONNECTION"); 
showvar("HTTP_X_BLUECOAT_VIA");
showvar("HTTP_PC_REMOTE_ADDR");
showvar("HTTP_PROXY___________");
showvar("HTTP_PROXY____");
showvar("HTTP_X_FWD_IP_ADDR");
showvar("HTTP_X_HOST");
showvar("HTTP_X_REFERER");
showvar("HTTP_X_SERVER_HOSTNAME");
showvar("PROXY_HOST");
showvar("PROXY_PORT");
showvar("PROXY_REQUEST");
showvar("HTTP_CLIENT_IP");
showvar("HTTP_PRAGMA");

Can anybody get me pointed in the right direction? Atleast show me how to return one variable. Thanks I have searched everywhere

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:24:52+00:00Added an answer on May 18, 2026 at 9:24 pm

    Just use Request.ServerVariables(VariableName)

    Example Request.ServerVariables("LOGON_USER")

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some trouble getting log4net to work from ASP.NET 3.5. This is the
I'm having trouble getting a client/server implementation of Quartz.NET working. I have a SQL
I'm having trouble getting in touch with SQL Server Managemen Studio 2008! I want
I'm having trouble getting the following to work in SQL Server 2k, but it
I've been having trouble getting my ASP.NET application to automatically log users into the
I am having trouble getting my ASP.NET application to start an application. For example
I am using HTML Purifier in my PHP project and am having trouble getting
I'm having trouble getting Code Analysis to run on the build server. My goal
I'm having trouble getting my ASPX-App to work on the productive server. As my
I just got a Windows Server 2008 VPS and I'm having trouble getting IIS7

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.