This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Click Rules > Customize Rules. Scroll to OnBoot() and inside the function add: | |
static function OnBoot() { | |
FiddlerApplication.oProxy.add_DetachedUnexpectedly(DoReattach); | |
//... | |
// Just before the OnBoot function, add the following new functions: | |
static function DoReattach(o: Object, ea: EventArgs) { | |
FiddlerObject.UI.sbpInfo.Text = "Scheduling automatic reattach at " + new Date(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file is based on the code from the ASP.NET Core repository | |
// https://github.com/aspnet/AspNetCore/tree/master/src/Middleware/SpaServices.Extensions/src | |
// Copyright (c) .NET Foundation. All rights reserved. | |
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Net; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local _M = {} | |
local json = require 'json' | |
local base_id = 'foo' | |
local api_key = 'bar' | |
local parse_values, get_table | |
local table_index = 1 | |
local offset = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local char_to_hex = function(c) | |
return string.format("%%%02X", string.byte(c)) | |
end | |
local function urlencode(url) | |
if url == nil then | |
return | |
end | |
url = url:gsub("\n", "\r\n") | |
url = url:gsub("([^%w ])", char_to_hex) |