Comments (6)
Could you provide an example dump file that exhibits this behavior?
from mitmproxy.
The mitmproxy flows don't seem to save this request, but here is an example HAR dump:
from mitmproxy.
Hello! I am a first-time contributor to mitmproxy and new to open-source in general, so I apologize in advance if something I say does not make sense.
My approach to this issue is to check if the request method is CONNECT
, in which case the url
field can be set to https://host/
(since this behavior is seen only in case of HTTPS and not HTTP) instead of host:port
, which is the default url
of the CONNECT
method.
Also, does the url
field have to be of the form https://host/
or does https://host:port/
also work?
Please let me know if this approach makes sense, so I can open a pull request for the same. Thank you!
from mitmproxy.
@basedBaba I think your approach makes sense! I can test your PR if you make one to check if it works on my end
Also, does the
url
field have to be of the formhttps://host/
or doeshttps://host:port/
also work?
The HAR spec says that the url field is the "absolute URL" of the request, so I would go with the https://host:port/
form. We can also have more information about the request this way
from mitmproxy.
@DaniElectra Thank you for the assistance!
I have opened a PR for review.
from mitmproxy.
Fixed by #6599 👍
from mitmproxy.
Related Issues (20)
- When I used mitmproxy to grab my bag, my phone got so hot that I felt like it was going to explode
- attrs = self._cert.subject.get_attributes_for_oid HOT 1
- Mitmproxy taking long time to respond on Macbook M1 Sonoma HOT 11
- some data does not go through mitm on android 4.4.4 (TLS handshake failed) ? HOT 6
- When using mitmproxy, sometimes client gets "502 BadGateway".
- Change http to https
- Record failed TLS client handshakes in UI and to mitm dump file (not only in log) HOT 1
- disable temporary filter feature HOT 4
- Save decoded GRPC/Protocol Buffer content with mitmdump HOT 1
- [Feature request] Copy as Python Requests
- Mitmproxy unusably slow with large responses in reverse mode HOT 10
- Transparent mode on Windows Server 2022 (AWS) HOT 4
- mac m1 | protobuf<3.19,>=3.14| only 3 can be used at least 20 HOT 3
- Wireguard mode with MITM with docker container doesn't work HOT 8
- Downgradin Https To Http Not Work (sslstrip.py)
- mitmdump crashes on dns requests in reverse proxy mode HOT 2
- Windows MSI installer does not clear old ARP entries on version upgrade
- allow_hosts doesnt work HOT 1
- upstream:https failed HOT 10
- DHCP failure in Local Redirect mode (Windows) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mitmproxy.