how to view http requests at the apache server end

Posted on 2013-09-04
Medium Priority
Last Modified: 2013-10-01
I have a standalone php page that is being called by an application.
THe URL includes GET Variables.

Unfortunately I have to troubleshoot the php page, but the application is unable to tell me what the URL+variables was that was sent.

Is there a log or somethign I can turn on in Apache, that will let me see what the URLs requested are?

Question by:Evan Cutler
LVL 21

Expert Comment

ID: 39465645
You can change the LogLevel Directive to 'debug' in apache.conf to look at the URL being passed to Apache.

Post your Apache.conf if you are having issue.
LVL 84

Accepted Solution

Dave Baldwin earned 2000 total points
ID: 39465808
This little PHP program will tell you everything that the server tells PHP about the server variables.  You can run it standalone then use what ever parts of it will help you.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<title>PHP Server Variables</title>
<body><h1>PHP Server Variables</h1>

foreach($_SERVER as $key => $value) {
    echo "<b>$key :</b> $value<br />\n";

print_r ($_POST);

Open in new window

LVL 111

Expert Comment

by:Ray Paseur
ID: 39465865
THe URL includes GET Variables.
In PHP your script should say this:


...that will let you visualize the GET variables.  If you have some test data samples that show what the URL will look like, please post them and I will show you how to process them.  If you don't have any test data yet, please create some so we can move forward toward a good solution, thanks.

Author Closing Comment

by:Evan Cutler
ID: 39537247
Thanks, and sorry for the delay...
This got me where I wanted to go.

Thanks again.

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This installment of Make It Better gives Media Temple customers the latest news, plugins, and tutorials to make their Grid shared hosting experience that much smoother.
The viewer will learn how to dynamically set the form action using jQuery.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question