ProxymanApp / ProxymanApp/Proxyman

Help with automatic and manual setup of proxy with NodeJS

Open
#1,618 4 comments 0 reactions 1 assignee View on GitHub

@NghiaTranUIT is already working on this.

Since Apr 28, 2023.

✅ Done bug
Dominant language
No language data
Stars
7k
Forks
237
PR merge metrics
No merged PRs in 30d

Description

Description

I am trying to get ProxyMan to intercept requests from a NodeJS application running in a terminal.

If I write a simple Node application, to make a request, and then use either ProxyMan's automated or manual methods to set up the proxy, and then run the node app, I find that the request shows in Proxyman, but instead of an HTTPS URL, I see an HTTP URL.

So, for example, https://google.com would appear as http://google.com

For sites that redirect from http to https, I see a redirect loop.

Steps to Reproduce

I have written a simple nodejs application to test out the proxy. The code is:

import axios from 'axios'; const response = await axios.get("https://google.com"); console.log(response);

If I run this in the ProxyMan automatic setup terminal, the response looks like it's gone to the http version of the site and not the https version.

If I open a fresh terminal, without automatic setup, I do not see the request in ProxyMan, but the node app does then return the https version of the site, as expected.

Environment

Node 19.6.0
Proxyman 4.7.0
macOS Ventura 13.3.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.