FiddlerCore-C#爬虫

Fiddler为FiddlerCore的UI版本,Fiddler4之后的版本是付费的,仅仅为了扒资源又去下载个付费版太不值了,FiddlerCore4.0这个版本的坑还是挺多的,本人也是从踩坑又爬坑又踩坑......

废话不多说,上代码

using System;
using Fiddler;
using BCCertMaker;
using System.Windows.Forms;
using System.Collections.Generic;

namespace SGM_GATEWAY
{
    class FiddlerUtil
    {
        //代理端口
        private static int proxyPort = 9937;
        //启动端口
        private static int startPort = 9936;
        private static bool isIgnoreCertError = false;
        // 代理
        private static Proxy proxy;
        private static string proxyHost = "localhost";
        private static bool isStart = false;
        public static Login login;

        public static bool start(int type,FormMain formMain)
        {
            TYPE = type;
            try
            {
                if (FiddlerApplication.IsStarted())
                {
                    close(formMain,false);
                }
                // 设置证书
                if (!Fiddler.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值