How to use as a Library?


#1

Hi,

How can i use Mitproxy as a library?
say i want the library to be imported, change the proxy settings like port number, forward it through another proxy etc and then run this new script which will in turn act as a proxy server. Like how we do with a web framework.

Thanks for the support.


#2

I just explored the examples sections, there are a quite few of utility scripts.
How can i delete this thread?


#3

This is fine, no need to delete anything. :slight_smile:


#4

I also need it. if you found it,please tell me,thanks. :laughing:


#5

Check the examples like the one with a heading of “upstream server” there
are lot of good examples. :+1: