<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 4:32 PM, Joe Armstrong <span dir="ltr"><<a href="mailto:erlang@gmail.com" target="_blank">erlang@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Sep 1, 2015 at 12:05 PM, Tuncer Ayaz <<a href="mailto:tuncer.ayaz@gmail.com">tuncer.ayaz@gmail.com</a>> wrote:<br>
> On Tue, Sep 1, 2015 at 9:54 AM, Joe Armstrong wrote:<br>
>> Hello,<br>
>><br>
>> I want to record all traffic between my browser and the Internet.<br>
>><br>
>> What I want is a record of<br>
>><br>
>> 1) the request<br>
>> 2) the number of bytes in the response<br>
>> 3) some timing data<br>
>><br>
>> When I fetch a web page.<br>
>><br>
>> I'd like this data (if possible) in the form of event messages being sent<br>
>> to an Erlang program.<br>
>><br>
>> Why do I want this?<br>
>><br>
>> I was horrified by reading<br>
>> <a href="http://blog.lmorchard.com/2015/07/22/the-verge-web-sucks/" rel="noreferrer" target="_blank">http://blog.lmorchard.com/2015/07/22/the-verge-web-sucks/</a><br>
>> and wanted to accurately record exactly how much data is involved when<br>
>> I request a web page. The I want see how much is content and how much<br>
>> is crap.<br>
>><br>
>> Any ideas<br>
><br>
> Browsers have (developer) profiling tools, which allow you to<br>
> inspect the network traffic from the client's view. That should do the<br>
> trick.<br>
<br>
I know, but I want to remotely control the browser from Erlang and get<br>
the results in Erlang not in the browser console (or whatever) - I<br>
don't want<br>
to click things inside the browser<br></blockquote><div><br></div><div>What about wireshark with http filter or a pcap capture file?<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
/Joe<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div></div>