# Create different multiple Har file according to the client

**URL:** <https://discourse.mitmproxy.org/t/create-different-multiple-har-file-according-to-the-client/1278>\
**Category:** help\
**Created:** [October 17, 2018, 3:00pm UTC](https://discourse.mitmproxy.org/t/create-different-multiple-har-file-according-to-the-client/1278 "2018-10-17T15:00:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EzimetYusup](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/ezimetyusup/32/363_2.png) [@EzimetYusup](https://discourse.mitmproxy.org/u/EzimetYusup)\
**Post date:** [October 17, 2018, 3:00pm UTC](https://discourse.mitmproxy.org/t/create-different-multiple-har-file-according-to-the-client/1278/1 "2018-10-17T15:00:15Z")

</div>

Hi Guys!  
I was working on a project, one of the problem I have is I need to create the different HAR file according to different client, let’s say I have two iPhone using mitmproxy, and i need to create two different HAR file for each of them, now I am able to create one har file for two of them, can anyone help for this?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![SteinLabs](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/steinlabs/32/346_2.png) [@SteinLabs](https://discourse.mitmproxy.org/u/SteinLabs)\
**Post date:** [October 18, 2018, 11:53pm UTC](https://discourse.mitmproxy.org/t/create-different-multiple-har-file-according-to-the-client/1278/2 "2018-10-18T23:53:58Z")

</div>

Why not just run 2 instances of mitmproxy on 2 different ports? That’s the easiest way

---

<div class="post-metadata">

**Author:** ![EzimetYusup](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/ezimetyusup/32/363_2.png) [@EzimetYusup](https://discourse.mitmproxy.org/u/EzimetYusup)\
**Post date:** [October 19, 2018, 2:15pm UTC](https://discourse.mitmproxy.org/t/create-different-multiple-har-file-according-to-the-client/1278/4 "2018-10-19T14:15:28Z")

</div>

Thanks for ur reply, I will try it, the thing is I may end up running many iOS devices like10 or even 20,  
do u think running separate instance of mitmproxy for each device will scale? I mean will my laptop can handle it?  
Another Question I have is, do u know how to export the session from command line while the proxy is running(without terminating the mitmproxy)?

Thanks!

---

<div class="post-metadata">

**Author:** ![SteinLabs](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/steinlabs/32/346_2.png) [@SteinLabs](https://discourse.mitmproxy.org/u/SteinLabs)\
**Post date:** [October 19, 2018, 3:07pm UTC](https://discourse.mitmproxy.org/t/create-different-multiple-har-file-according-to-the-client/1278/5 "2018-10-19T15:07:05Z")

</div>

1. It won’t scale unless you write some sort of tool to automate the process. I did something similar a while back using a python flask app. 2. Not without modifying the example scripts unless they have changed recently.
