Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a GeoServer 2.0.2 and I send POST requests using mobile devices. I would like to see how the incoming POST request HTTP headers are formatted, especially what kind of character encoding and response type are provided by the client.

How can I setup GeoServer and/or Jetty to provide me with these informations?

share|improve this question
up vote 7 down vote accepted

You can capture the entire tcp stream using e.g.

tcpdump -i interface_name port 8080 -w /tmp/capture

after the capture is complete you copy the file from the server to some station and use wireshark to decode the capture.

share|improve this answer

You can install and configure the logback tee filter as documented here:

The Tee filter seems to dump both request and response headers.

another solution builtin in geoserver, does not meet user requirements

Edit the web.xml file in


then scroll down until you reach the filter called 'Request Logging Filter' and enable it. Restart geoserver to apply the new cfg.

share|improve this answer
I have tried that, but it doesn't include the HTTP headers. – Chau Sep 5 '11 at 11:29
Then I'm afraid you'll have to either use a proxy like Charles or tcpdump the traffic as suggested in another solution. – unicoletti Sep 5 '11 at 12:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.