在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:j6mes/httplib开源软件地址:https://github.com/j6mes/httplib开源编程语言:C# 100.0%开源软件介绍:HttpLib is a free (Apache 2.0 License) web request helper for .Net that makes it easier for developers to access and download resources from the internet. Version 2.0.16 AboutThe library was first released in 2012 and has since had over 50,000 downloads. DownloadReleases are available from the release page on this github repo. The Codeplex repo is no longer maintained. Source codeSource code is available on GitHub Latest Release:The most recent release is 2.0.16 which supports the following features:
Supported platforms: .Net4.0+ (WinForms, WCF, ASP.Net, Silverlight 5, Windows Phone 8.0+, Windows 8.0+). Upcoming Releases:2.1: OAuth2 authentication provider ExamplesGET Web PagePerforms a HTTP GET on a given URL and executes the lambda function provided to the OnSuccess method. This example prints the content of the web page to the command line.
Errors can be caught through using the OnFail method as show below:
POST Web PageWeb page form data can be posted to a web service using the .Form method as shown below. From user requests, this method also supports posting of dictionaries.
Alternatively, a raw message (such as SOAP or JSON) can be posted using the .Body method. Upload File to Web ServiceMultiple files from the local computer can be uploaded to the remote server through specifying a list of NamedFileStreams in the .Upload method.
And of course, fitting with the true flexibility of HttpLib, a progress monitor and onsuccess method can be added too:
Download file from Web ServiceFiles can be downloaded directly to disk using the DownloadTo extension. An OnSuccess method can be added as a parameter here. If the server doesn’t reply with a content length header, the totalBytes value will be null meaning that you won’t be able to give a percentage of how much of the file has been downloaded.
DELETE Web PagePerforms a HTTP DELETE on a given URL
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论