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

  • Home
  • SEARCH
  • 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 7498919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:38:20+00:00 2026-05-29T19:38:20+00:00

Some mobile gateways are passing custom headers to my site. These headers are passed

  • 0

Some mobile gateways are passing custom headers to my site. These headers are passed in various formats, sometimes, x-msisdn, sometimes x-up-calling-line-id and others. How can I log all headers passed in my custom log format?

  • 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-29T19:38:23+00:00Added an answer on May 29, 2026 at 7:38 pm

    Via Apache HTTPD I’m not sure how to log all headers – only how to log one header that you know about.

    Using the standard Apache httpd module mod_log_config you can specify the following option in the CustomLog directive.

    %{Foobar}i The contents of Foobar: header line(s) in the request sent to the server. Changes made by other modules (e.g. mod_headers) affect this.

    However you could do this in jsp (if this is what you’re using by chance)

    <!-- method used to send request
    <%= request.getMethod() %>
    
    URI of the request
    <%= request.getRequestURI() %>
    
      <%
         /*This method returns an enumeration of all the header names this 
           request contains.*/       
      java.util.Enumeration names = request.getHeaderNames();
      while (names.hasMoreElements()) {
         String hname = (String)names.nextElement();
      %>
    
         <%= hname %>
         <%= request.getHeader(hname) %>
      <%
      }
      %>
    --!>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some background I'm currently working on a mobile site so I keep switching user
I have a c# mobile site and have a problem with some of mobile
In some mobile browsers, pressing a number on the keypad, launches a link that
Some Java mobile devices have distinct heaps for MIDP and VM. What's the distinction
I've inherited some windows-mobile code that I've been bringing up-to-date. I've come across a
I am planning to start some Java mobile phone development. I downloaded the wireless
Recently we are going to develop some products on mobile phone (specially for 3g).
In Windows Mobile I am using FindFirstFile/FindNextFile to search for some files. As part
I am developing some applications in Windows Mobile 6 on Visual Studio 2008 , and I
I have a mobile platform that I am trying to write some communications code

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.