Checking HTTP with Wireshark
Wanted to analyze network traffic captured on Wireshark with a simple login form.
I created a small rails app with:
I created a small rails app with:
rails new acme
I created a home controller with an index page. I added the following form on the page to capture the data.
<form action="/login" method="post">
<%= hidden_field_tag :authenticity_token, form_authenticity_token %>
<label>Username</label>
<input name="username">
<label>Password</label>
<input type="password" name="password">
<button>Login</button>
</form>
Going onto wireshark and searching for a request method of POST and was able to identify the packet.