资源简介

此万能框架源码由本人购买,仅供大家学习交流使用,请大家于24小时之内删除,谢谢合作,如用作商业用途,请登陆作者网站:http://httphelper.sufeinet.com/ 自行购买!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using CsharpHttpHelper.baseBll;
using System.Drawing;
using CsharpHttpHelper.Helper;
using CsharpHttpHelper.Item;
using System.Collections.Specialized;

namespace CsharpHttpHelper
{
    /// 
    /// Http帮助类  Copyright:http://www.httphelper.com/
    /// 版本:1.8
    /// 作者:苏飞
    /// 更新时间:2015-07-20
    /// 

    public class HttpHelper
    {
        #region Private Obj

        /// 
        /// HttpHelperBLL
        /// 

        private HttpHelperBll bll = new HttpHelperBll();

        #endregion

        #region HttpHelper
        /// 
        /// 根据相传入的数据,得到相应页面数据
        /// 

        /// 参数类对象
        /// 返回HttpResult类型
        public HttpResult GetHtml(HttpItem item)
        {
            return bll.GetHtml(item);
        }
        /// 
        /// 根据Url获取图片
        /// 

        /// HttpItem参数
        /// 返回图片,错误为NULL
        public Image GetImage(HttpItem item)
        {
            return bll.GetImage(item);
        }
        /// 
        /// 快速请求方法FastRequest(极速请求不接收数据只做提交)不返回Header、Cookie、Html
        /// 

        /// 参数类对象
        /// 返回HttpResult类型
        public HttpResult FastRequest(HttpItem item)
        {
         
            return bll.FastRequest(item);
        }
        #endregion

        #region Cookie
        /// 
        /// 根据字符生成Cookie和精简串,将排除pathexpiresdomain以及重复项
        /// 

        /// Cookie字符串
        /// 精简串
        public static string GetSmallCookie(string strcookie)
        {
            return HttpCookieHelper.GetSmallCookie(strcookie);
        }
        /// 
        /// 将字符串Cookie转为CookieCollection
        /// 

        /// Cookie字符串
        /// List-CookieItem
        public static CookieCollection StrCookieToCookieCollection(string strcookie)
        {
            return HttpCookieHelper.StrCookieToCookieCollection(strcookie);
        }
        /// 
        /// 将CookieCollection转为字符串Cookie
        /// 

        /// Cookie字符串
        /// strcookie
        public static string CookieCollectionToStrCookie(CookieCollection cookie)
        {
            return HttpCookieHelper.CookieCollectionToStrCookie(cookie);
        }
        #endregion

        #region URL

        /// 
        /// 使用指定的编码对象将 URL 编码的字符串转换为已解码的字符串。
        /// 

        /// 指定的字符串
        /// 指定编码默认为Default
        /// 解码后字符串

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-03-07 11:59  HttpHelper万能框架V1.8\
     目录           0  2016-03-07 11:59  HttpHelper万能框架V1.8\CsharpHttpHelper\
     目录           0  2016-03-07 11:59  HttpHelper万能框架V1.8\CsharpHttpHelper\base\
     文件       18715  2015-07-10 11:04  HttpHelper万能框架V1.8\CsharpHttpHelper\base\Httphelperbase.cs
     目录           0  2016-03-07 11:59  HttpHelper万能框架V1.8\CsharpHttpHelper\baseBll\
     文件        2731  2015-04-30 14:32  HttpHelper万能框架V1.8\CsharpHttpHelper\baseBll\HttpHelperBll.cs
     文件        3855  2015-10-19 10:24  HttpHelper万能框架V1.8\CsharpHttpHelper\CsharpHttpHelper.csproj
     目录           0  2016-03-07 11:59  HttpHelper万能框架V1.8\CsharpHttpHelper\Enum\
     文件         458  2014-11-24 08:51  HttpHelper万能框架V1.8\CsharpHttpHelper\Enum\AType.cs
     文件         747  2014-10-24 08:13  HttpHelper万能框架V1.8\CsharpHttpHelper\Enum\PostDataType.cs
     文件         560  2014-10-24 08:13  HttpHelper万能框架V1.8\CsharpHttpHelper\Enum\ResultCookieType.cs
     文件         543  2014-10-24 08:13  HttpHelper万能框架V1.8\CsharpHttpHelper\Enum\ResultType.cs
     目录           0  2016-03-07 11:59  HttpHelper万能框架V1.8\CsharpHttpHelper\Helper\
     文件        1516  2015-07-07 11:03  HttpHelper万能框架V1.8\CsharpHttpHelper\Helper\base64Helper.cs
     文件        1179  2014-10-30 12:05  HttpHelper万能框架V1.8\CsharpHttpHelper\Helper\EncodingHelper.cs
     文件        2081  2014-11-24 08:51  HttpHelper万能框架V1.8\CsharpHttpHelper\Helper\ExecJsHelper.cs
     文件        5678  2015-05-13 15:58  HttpHelper万能框架V1.8\CsharpHttpHelper\Helper\HtmlHelper.cs
     文件        3968  2015-10-27 16:03  HttpHelper万能框架V1.8\CsharpHttpHelper\Helper\HttpCookieHelper.cs
     文件        4186  2014-11-07 15:09  HttpHelper万能框架V1.8\CsharpHttpHelper\Helper\HttpUrlHelper.cs
     文件         723  2014-10-30 12:05  HttpHelper万能框架V1.8\CsharpHttpHelper\Helper\ImageHelper.cs
     文件        1470  2014-10-24 08:13  HttpHelper万能框架V1.8\CsharpHttpHelper\Helper\Jsonhelper.cs
     文件        1326  2014-10-24 08:13  HttpHelper万能框架V1.8\CsharpHttpHelper\Helper\MD5Helper.cs
     文件       11609  2015-10-27 15:42  HttpHelper万能框架V1.8\CsharpHttpHelper\HttpHelper.cs
     文件       10128  2015-07-09 17:56  HttpHelper万能框架V1.8\CsharpHttpHelper\HttpItem.cs
     文件        2708  2015-10-19 10:26  HttpHelper万能框架V1.8\CsharpHttpHelper\HttpResult.cs
     目录           0  2016-03-07 11:59  HttpHelper万能框架V1.8\CsharpHttpHelper\Item\
     文件         923  2014-11-24 08:51  HttpHelper万能框架V1.8\CsharpHttpHelper\Item\AItem.cs
     文件         499  2014-10-24 08:13  HttpHelper万能框架V1.8\CsharpHttpHelper\Item\ImgItem.cs
     目录           0  2016-03-07 11:59  HttpHelper万能框架V1.8\CsharpHttpHelper\Properties\
     文件        1457  2015-10-27 15:43  HttpHelper万能框架V1.8\CsharpHttpHelper\Properties\AssemblyInfo.cs
     目录           0  2016-03-07 11:59  HttpHelper万能框架V1.8\CsharpHttpHelper\Static\
............此处省略58个文件信息

评论

共有 条评论