Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • N node-http-proxy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 482
    • Issues 482
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 102
    • Merge requests 102
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • http ... PARTY!
  • node-http-proxy
  • Issues
  • #1611
Closed
Open
Issue created Sep 28, 2022 by jaredxx1@jaredxx1

Request body not available when request is being made through corporate proxy HttpsProxyAgent

Minimal reproduction: https://gist.github.com/jaredxx1/e232f254d14e9589b3a400372209a801

I can't get the POST body when using an agent. Everything works fine if I disable the corporate proxy.

Result without agent option enabled: proxyReq: application/x-www-form-urlencoded 39 req data <Buffer 69 64 3d 63 66 63 38 66 36 34 62 2d 36 62 36 37 2d 34 62 38 61 2d 38 33 65 62 2d 30 37 33 35 61 35 32 31 66 36 33 66> req end id=cfc8f64b-6b67-4b8a-83eb-0735a521f63f

And result with agent enabled (new HttpsProxyAgent('http://user:pass@proxy-provider:30000'): proxyReq: application/x-www-form-urlencoded 39

I still get the correct content-type and content-length but the body is missing. I've also tried to listen on proxyReq 'data' events without success.

Any ideas?

Assignee
Assign to
Time tracking