-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFiddlerScripts.fs
More file actions
24 lines (21 loc) · 914 Bytes
/
FiddlerScripts.fs
File metadata and controls
24 lines (21 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Need these for work to return a simulated bid response from various demand end-points when visiting a site served over HTTPS.
// Secure JPT Requests
if(oSession.HostnameIs("secure.adnxs.com") && oSession.isHTTPS){
oSession.oRequest.headers.UriScheme = "http";
oSession.hostname="demo.arrepiblik.com";
oSession.port="3001";
}
// Any Prebid AST Request
if(oSession.HostnameIs("ib.adnxs.com") && oSession.isHTTPS){
oSession.oRequest.headers.UriScheme = "http";
oSession.hostname="demo.arrepiblik.com";
oSession.PathAndQuery = oSession.PathAndQuery.Replace("ut/v3/prebid", "ast");
oSession.port="3001";
}
// DMX Requests
if(oSession.HostnameIs("rtb.districtm.io") && oSession.isHTTPS){
oSession.oRequest.headers.UriScheme = "http";
oSession.hostname="demo.arrepiblik.com";
oSession.PathAndQuery = oSession.PathAndQuery.Replace("bid?", "dmx?");
oSession.port="3001";
}