Skip to content

Question: How to mock server response from an URL? #6

Description

@KajeArch

I doubt everyone will read this and I don't know if this belongs here, but I need a bit of an advice and I'm having quite a hard time figuring this out as JS seems a bit painful to me. Say, we send a typical GET request to an URL, like https://www.example.com/ with some string (doesn't matter what it is) and we receive the respond from the real server: "example string". How could I use mitmproxy-mock to now "catch" this certain HTTP response and, say, change the said string to a different string, like "oh that's my own!" ?
@arkku
@0neel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions