Giter VIP home page Giter VIP logo

Comments (6)

mhils avatar mhils commented on June 15, 2024

Could you provide an example dump file that exhibits this behavior?

from mitmproxy.

DaniElectra avatar DaniElectra commented on June 15, 2024

The mitmproxy flows don't seem to save this request, but here is an example HAR dump:

test.har.zip

from mitmproxy.

basedBaba avatar basedBaba commented on June 15, 2024

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.

DaniElectra avatar DaniElectra commented on June 15, 2024

@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 form https://host/ or does https://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.

basedBaba avatar basedBaba commented on June 15, 2024

@DaniElectra Thank you for the assistance!

I have opened a PR for review.

from mitmproxy.

DaniElectra avatar DaniElectra commented on June 15, 2024

Fixed by #6599 👍

from mitmproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.