简体   繁体   中英

Intercept http requests without creating a browser extension

I'm currently trying to create an application to automate analytics testing, but I have no idea what to use or how to start. What I wanted to do is explained in the pic below

在此处输入图片说明

I want to read the headers because the request that corresponds to the analytics have specific attributes. Is it possible to access those requests without creating an extension? ( Preferably with jQuery or PHP )

In php you can use getallheaders() ,

<?php
    foreach (getallheaders() as $name => $value) {
        echo "$name: $value\n";
    }
?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM