Wednesday, November 7, 2012

Wireshark with Django development server

If You want to use Wireshark to inspect Django requests and responses be aware that wiresharks http filter isn't by default active on 8000 port. To turn it on go to Edit->Preferences->Protocols->HTTP and add 8000 to TCP ports.

It also turns out that http filter doesn't get django development servers response-codes right. Forget about filtering by http.response.code == 500. I tested it on Ubuntu 12.04 and with default WSGIRef server it didn't work at all. If you want to filter responses by response code do it another way. What worked for me is filtering by contains "INTERNAL SERVER ERROR"

No comments:

Post a Comment