Implement HTTP(S) proxy

This commit is contained in:
2023-09-21 13:34:05 +08:00
parent 41c644f2af
commit a71048d905
22 changed files with 1634 additions and 74 deletions

View File

@@ -0,0 +1,12 @@
using System;
using System.Runtime.InteropServices;
namespace Eavesdrop
{
internal static class NativeMethods
{
[DllImport("wininet.dll", SetLastError = true, CharSet = CharSet.Auto)]
[return: MarshalAs(UnmanagedType.Bool)]
public static extern bool InternetSetOption(IntPtr hInternet, int dwOption, IntPtr lpBuffer, int dwBufferLength);
}
}