• 大小: 0.06M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 模拟  http  C#  服务器  服务  

资源简介

模拟POST等模式完成发包并查看服务器返回信息

资源截图

代码片段和文件信息

////////////////////////////////////////////////////////////
// FrmTestHttpPost.cs: 测试Http的POST方法.
// Author: zyl910
// Blog: http://www.cnblogs.com/zyl910
// URL: http://www.cnblogs.com/zyl910/archive/2012/09/19/TestHttpPost.html
// Version: V1.00
// Updata: 2012-09-19
//
////////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Net;
using System.Net.Cache;

namespace TestHttpPost
{
public partial class FrmTestHttpPost : Form
{
private EncodingInfo[] _Encodings = null; // 编码集合.
private Encoding _ResEncoding = null; // 回应的编码.

public FrmTestHttpPost()
{

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      15360  2016-12-25 21:50  TestHttpPost\TestHttpPost\bin\Debug\TestHttpPost.exe

     文件      28160  2016-12-25 21:50  TestHttpPost\TestHttpPost\bin\Debug\TestHttpPost.pdb

     文件      21656  2016-12-27 23:05  TestHttpPost\TestHttpPost\bin\Debug\TestHttpPost.vshost.exe

     文件        490  2016-07-16 19:44  TestHttpPost\TestHttpPost\bin\Debug\TestHttpPost.vshost.exe.manifest

     文件      24576  2012-09-19 23:52  TestHttpPost\TestHttpPost\bin\Release\TestHttpPost.exe

     文件       5699  2016-12-25 21:50  TestHttpPost\TestHttpPost\FrmTestHttpPost.cs

     文件       8849  2016-12-25 21:50  TestHttpPost\TestHttpPost\FrmTestHttpPost.Designer.cs

     文件       7580  2016-12-25 21:50  TestHttpPost\TestHttpPost\FrmTestHttpPost.resx

     文件        791  2016-12-25 19:57  TestHttpPost\TestHttpPost\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6061  2016-12-26 10:58  TestHttpPost\TestHttpPost\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       4608  2016-12-25 19:56  TestHttpPost\TestHttpPost\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        724  2016-12-27 23:05  TestHttpPost\TestHttpPost\obj\Debug\TestHttpPost.csproj.FileListAbsolute.txt

     文件        857  2016-12-25 21:50  TestHttpPost\TestHttpPost\obj\Debug\TestHttpPost.csproj.GenerateResource.Cache

     文件       1341  2016-12-25 19:58  TestHttpPost\TestHttpPost\obj\Debug\TestHttpPost.csprojResolveAssemblyReference.cache

     文件      15360  2016-12-25 21:50  TestHttpPost\TestHttpPost\obj\Debug\TestHttpPost.exe

     文件        180  2016-12-25 21:50  TestHttpPost\TestHttpPost\obj\Debug\TestHttpPost.FrmTestHttpPost.resources

     文件      28160  2016-12-25 21:50  TestHttpPost\TestHttpPost\obj\Debug\TestHttpPost.pdb

     文件        180  2016-12-25 19:58  TestHttpPost\TestHttpPost\obj\Debug\TestHttpPost.Properties.Resources.resources

     文件        403  2012-09-19 14:11  TestHttpPost\TestHttpPost\Program.cs

     文件       1218  2012-09-19 23:40  TestHttpPost\TestHttpPost\Properties\AssemblyInfo.cs

     文件       2864  2016-12-25 19:56  TestHttpPost\TestHttpPost\Properties\Resources.Designer.cs

     文件       5350  2012-09-19 14:11  TestHttpPost\TestHttpPost\Properties\Resources.resx

     文件       1112  2016-12-25 19:56  TestHttpPost\TestHttpPost\Properties\Settings.Designer.cs

     文件        249  2012-09-19 14:11  TestHttpPost\TestHttpPost\Properties\Settings.settings

     文件       3589  2016-12-25 19:56  TestHttpPost\TestHttpPost\TestHttpPost.csproj

     文件        992  2016-12-25 19:56  TestHttpPost\TestHttpPost\TestHttpPost.sln

    ..A..H.     36352  2016-12-27 23:05  TestHttpPost\TestHttpPost\TestHttpPost.v12.suo

     目录          0  2016-12-25 19:56  TestHttpPost\TestHttpPost\obj\Debug\TempPE

     目录          0  2016-12-25 19:58  TestHttpPost\TestHttpPost\bin\Debug

     目录          0  2012-09-19 23:53  TestHttpPost\TestHttpPost\bin\Release

............此处省略9个文件信息

评论

共有 条评论