ProxymanApp / atlantis

Capture HTTP/HTTPS, and Websocket from iOS app without proxy.
https://proxyman.io
Apache License 2.0
1.27k stars 95 forks source link

[BUG] Missing some Header from Request #15

Open NghiaTranUIT opened 4 years ago

NghiaTranUIT commented 4 years ago

Description

For some reason, our swizzle method could not get the following request:

Research shows that three HTTP Headers are appending at the very end before the request is executed from URL Session.

Begel is not able to record it too, but FLEX does. We should find a way to fix it 👍

Sherlouk commented 3 years ago

Hey Nghia 👋

I see this is listed as "Done" but unsure if it's actually fixed? Maybe a regression in the version I'm using?

Request Header: []

Response Header: [Atlantis.Header(key: "Strict-Transport-Security", value: "max-age=31536000; includeSubDomains"), Atlantis.Header(key: "Server", value: "nginx"), Atlantis.Header(key: "Content-Type", value: "text/html; charset=UTF-8"), Atlantis.Header(key: "Content-Length", value: "31767"), Atlantis.Header(key: "x-content-type-options", value: "nosniff"), Atlantis.Header(key: "Cache-Control", value: "public, max-age=10, s-maxage=30"), Atlantis.Header(key: "Vary", value: "Accept-Encoding"), Atlantis.Header(key: "Content-Encoding", value: "gzip"), Atlantis.Header(key: "x-xss-protection", value: "1; mode=block"), Atlantis.Header(key: "Date", value: "Tue, 23 Feb 2021 20:30:00 GMT")]

As it stands the lists above show all of the request/response headers I'm receiving but User-Agent is not one (and is one that I would like!)

Atlantis v1.8.0 via Swift Package Manager in "transport-less mode"

        Atlantis.setDelegate(self)
        Atlantis.setEnableTransportLayer(false)
        Atlantis.start()
archcorsair commented 3 years ago

I'm currently experiencing this issue. For example: User-Agent is being stripped when I use Atlantis, but when I do a manual proxy it is included.