Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How do I filter for HTTP 500 responses and their requests in Wireshark?

I'm able to use http.response.code == 500 to find all the responses which got the return code 500 but I want to be able to see the requests of those responses, too.

Update: I want to do this automatically so that I can set up a tshark.exe instance to record one day and only save the interesting HTTP traffic (there is a WEBDAV running on the same server with a lot of traffic that does not interest me).

Second Update: Since I mainly wanted to record messages that were sent to a WebService and not the WEBDAV, I used http.content_type contains "text/xml" to filter for xml based messages. This is not 100% what I was looking for but generates small enough logs for further debugging.

share|improve this question
add comment

1 Answer

I believe you will have to put a capture filter for all HTTP traffic, and then put in a display filter for the http.response.code == 500
After you have found a response code, remove the display filter and then use the Follow TCP Stream -or- the Conversation Filter to find the related packets...

share|improve this answer
    
@Scott Lundberg thanks for the hint but I need to do this automatically which I suppose is not possible with your solution –  Martin Apr 15 '10 at 7:14
    
@mutzel: If I understand your update, you are looking for a trigger (response code in this case) that will start your capture and then using the basis for the trigger, only capture that conversation? If so, then no, Wireshark will not be able to do that for you as it doesn't have triggers... –  Scott Lundberg Apr 16 '10 at 14:58
    
yes, some kind of a trigger would have been nice. Or may be a filter based on conversations and not packages. So that I could filter for every conversation containing an HTTP 500. –  Martin Apr 19 '10 at 14:12
add comment

Your Answer

 
discard

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.