Skip to content
On this page

RequestBite Inspector

What is Inspector?

RequestBite is a simple and easy-to-use service that allows you to inspect webhook and HTTP requests. Go to requestbite.com/view and the service will automatically create a unique URL to which you can send your data for review.

The service collects and prints the following data:

  • Request headers
  • Query strings
  • Form fields
  • Uploaded files
  • Request body

Awaiting your first request

This is what the page looks like before you have sent your first request:

First request

Functionality of page

Available functionality before having received your first view:

Top-right corner

  • Run request
    This submits a POST request with a JSON payload to the server, similarly to what the curl command in the terminal window would do. This request is made directly from your browser and not forwarded through any backend.
  • Copy URL
    Copies the unique request URL to your clipboard.
  • Copy cURL command
    Copies the full curl command to your clipboard. If you're running a Linux or Mac system, you can paste this command into your terminal window and run it.
  • Views (not always present)
    If you're logged into your RequestBite account, this button links to the Views admin page in RequestBite HQ.

Below terminal view

  • Dropdown
    If you have more than one view avaialble, then you can click the dropdown and select another one. If the selected view has received requests, you will be redirect to the request dashboard.
  • Add (plus)
    Allows you to create a new view.
  • Settings (cog-wheel)
    Allows you to rename your view. If you're logged in, you're redirected to the admin page for this view in RequestBite HQ.
  • Delete (bin) (not always present)
    This button deletes the current view. A view is the unique URL that you can submit your requests to. If you have more than one view, then you can also delete them one by one and their associated requests. When you delete a view, you will be automatically redirected to your next available view.

The Request Dashboard

The Request Dashboard is what we call the page where you can see all requests for a given view as well as inspect them individually:

Request dashboard

The following data is presented for each request:

Request details

  • Host
    The public IPv4 or IPv6 address of the client sending the request.
  • HTTP verb
    The HTTP method used in the request (e.g. GET, POST, PUT, DELETE).
  • Timestamp
    The date and time in UTC when the request was received.

Request headers

This section lists all request headers sent by the client as key-value pairs.

Query strings

INFO

This section is only present if query strings are sent by the client.

This section lists all query strings sent by the client like this:

plaintext
foo: bar

Form fields

INFO

This section is only present if form fields are sent by the client.

If you send a request with a Content-Type: application/x-www-form-urlencoded or Content-Type: multipart/form-data header, then any textual form fields will be displayed in this section, i.e. what is commonly sent in regular HTML forms with <input> fields by web browsers.

Example output:

plaintext
name_of_field: Value of field

Files

INFO

This section is only present if files are uploaded by the client.

If you send a request with a Content-Type: multipart/form-data header (or if the request body only contains binary data), then any files uploaded will be displayed in this section in combination with their mime type and size.

It is also possible to download an uploaded file by clicking the download icon.

Example output:

plaintext
name_of_field: image.svg - image/svg+xml - 28,805 bytes

Request Body

INFO

This section is only present if a body payload is sent by the client.

This section shows the request body sent by the client. If the body is JSON, it will by default be pretty-printed and syntax-highlighted. You can toggle if you want to disable the pretty-printing or if you want to wrap the content through two checkboxses in the top right of the printout.

Functionality on the page

  • Clear all
    This will delete all requests for the current view. You will be asked to confirm this action. When all requests are deleted, you will be redirect to the entry page for the view.
  • Delete view
    This will delete the current view and all its associated requests. Just like the Clear all button, you will be asked to confirm this action. If you have more than one view, you will be redirect to your next available view. If you don't have any more views, you will be redirected to the entry page for a new view.
  • Delete request
    If you hover any of the requests in the sidebar, you see a red trash can icon. If you click that one, this associated request will be deleted.
  • Copy URL
    This will copy the URL of the current view to your clipboard.
  • Automatically show new requests
    If you have this checkbox checked, you will automatically be redirected to any new requests coming in. This is handy if you want to "tail" any requests you send for debugging purposes. If instead you want to focus on a specific request and ingore any new ones, you can uncheck this box.

Returned data

When you make a request, the service returns a link to the HQ web page where you can inspect the results. It will also return the data sent in, so that you can immediately see the data it retrieved.

Example:

json
{
  "info": "Inspect request at http://localhost:8080/view/ID",
  "status": "success",
  "httpMethod": "GET",
  "requestHeaders": [
    {
      "name": "Accept",
      "value": "*/*"
    },
    {
      "name": "User-Agent",
      "value": "curl/7.88.1"
    }
  ]
}

... so that you can click the link and inspect the request.

Released under the MIT License.