WinInetHelper 1.7.28

dotnet add package WinInetHelper --version 1.7.28
                    
NuGet\Install-Package WinInetHelper -Version 1.7.28
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WinInetHelper" Version="1.7.28" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WinInetHelper" Version="1.7.28" />
                    
Directory.Packages.props
<PackageReference Include="WinInetHelper" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WinInetHelper --version 1.7.28
                    
#r "nuget: WinInetHelper, 1.7.28"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WinInetHelper@1.7.28
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WinInetHelper&version=1.7.28
                    
Install as a Cake Addin
#tool nuget:?package=WinInetHelper&version=1.7.28
                    
Install as a Cake Tool

增加PUT模式

1、初始化

WinInetHelper.WinInetClass http = 新的WinInetHelper.WinInetClass();

2、获取网络请求

var model= http.GetHtml(网址,Cookie,是否自动重定向);

var html=mode.Html;//取回网页源码

var retCookie=model.Cookie;//请求返回的Cookie

3、发布网络请求

var model= http.PostHtml(网址,请求的数据,Cookie);

var html=mode.Html;//取回网页源码

var retCookie=model.Cookie;//请求返回的Cookie

4、设置请求头

http.AddHead(key,value);//设置请求头

http.AddOneTimeHead(key,value);//设置一次性请求头,请求后自动删除

5、设置请求参数http.AddParameter(key,value);//设置请求参数

6、设置代理

http.SetProxyIP(代理IP);//设置代理

Product Compatible and additional computed target framework versions.
.NET Framework net471 is compatible.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.7.28 144 7/29/2024

WinInetHelper