Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Catch packets from my website

Hello, so I have an HTML code which I run based on Github websites and I want to see packets going through my computer to the website which I created.

The HTML code:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Http Requests & JavaScript</title>
  <link rel="stylesheet" href="app.css">
  <link href="xhr.js">
  <script src="xhr.js" defer></script>
</head>
<body onload="initRequestInterval()">
  <section id="control-center">
    <button id="get-btn">GET Data</button>
    <button id="post-btn">POST Data</button>
  </section>
</body>
</html>

Where "initRequestInterval()" sends 5 HTTP GET requests to the client every second

Website page:

https://pages.cs.huji.ac.il/nir-vaknin/mysite/

The problem:

I don't see the packets because I don't know the public IP of that website I tried to do nslookup command and the DNS tells me that he didn't find the public IP of the website. I tried to Isolate the packets I sent from my computer so I can see the HTTP GET packets from the website but without success.

Possible explanation but I am not quite sure: I use dummy HTTP GET request such as: https://reqres.in/api/users so not actual data being sent, maybe because of that?

How can I capture the HTTP request on Wireshark console?