Capture HTTP Request from Server Side on NextJS

Cover Image for Capture HTTP Request from Server Side on NextJS

1. Problems

When calling an HTTP/HTTPS Request from the server-side NextJS by using fetch(), it's really difficult to debug the network. The workaround is using the console.log() to print out the Request/Response on the Terminal app.

Therefore, it's a nightmare when debugging a large codebase with hundreds of requests.

This blog will cover the following:

  • How to capture HTTP/HTTPS Request from Server Side on NextJS 15 with Proxyman

2. Solution

Proxyman introduces the Automatic Setup that opens the pre-configured Terminal app. By starting your NextJS Server on this Terminal, Proxyman automatically captures all HTTP/HTTPS from your NextJS Project.

Benefits:

  • No need to config the proxy
  • No need to trust the Proxyman Certificate
  • Work out of the box
  • Easier to set up than using the Reverse Proxy Tool

Here is the walkthrough:

  1. Tell fetch() not to reuse a stored result by using cache: 'no-store' when you need every request to reach the server.
export default async function MyPage() {
  const res = await fetch('https://httpbin.org/anything', { cache: 'no-store' })
  return <div>My Page{res.text()}</div>
}

=> Cache behavior depends on the Next.js version and whether the route is built ahead of time or rendered for each request. Development hot reload can also reuse a Server Component fetch result. => { cache: 'no-store' } makes Next.js fetch from the remote server for each request, which is useful while you verify the call in Proxyman.

  1. Open Proxyman -> Setup -> Automatic Setup -> Open new Terminal
Start the Terminal with Auto Setup from Proxyman
Start the Terminal with Auto Setup from Proxyman
  1. From this Terminal -> Start your NextJS here with npm run dev
Start your NextJS with Proxyman
Start your NextJS with Proxyman
  1. Done, all HTTP/HTTPS from fetch() are captured and intercepted by Proxyman.
Capture HTTPS from fetch on NextJS
Capture HTTPS from fetch on NextJS

3. What's next

Run the Next.js command in the terminal opened by Proxyman; the setup belongs to that terminal session. If a call still does not appear, use a full page navigation rather than hot reload and confirm the code path runs on the server. Browser-side fetch calls follow the browser setup instead.

Noah Tran
Noah Tran

Revised July 16, 2026. Updated the Next.js cache example to use no-store and explained development caching.

See requests made by your Next.js server

Start the dev server from a Proxyman terminal and inspect server-side fetch calls that never appear in browser tools.

Get Proxyman