I found that in Windows you must specify forward slashes in file path:
var fs = require("fs"); fs.appendFile("c:/test/log.txt", "text to write to file goes here", (err) => { if (err) throw err;});
I found that in Windows you must specify forward slashes in file path:
var fs = require("fs"); fs.appendFile("c:/test/log.txt", "text to write to file goes here", (err) => { if (err) throw err;});
For example you want to test a website logs “Forwarded” request header.
Run Fiddler. (tested version 4.6.2.x)
Select Rules -> Custom Rules.
This opens CustomRules.js in notepad.
Search for “static function OnBeforeRequest(oSession: Session)”
after the next curly brace “{” enter the following :
oSession.oRequest["Forwarded"] = "for=192.0.2.60; proto=http; by=203.0.113.43";
then save the file.
With Fiddler still running, open a browser & navigate to your test site. The header will be applied to each request.