Nx 2.4.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Nx --version 2.4.1.1
NuGet\Install-Package Nx -Version 2.4.1.1
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="Nx" Version="2.4.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nx --version 2.4.1.1
#r "nuget: Nx, 2.4.1.1"
#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.
// Install Nx as a Cake Addin
#addin nuget:?package=Nx&version=2.4.1.1

// Install Nx as a Cake Tool
#tool nuget:?package=Nx&version=2.4.1.1

A .Net Helper Library For Rapid Development.Give You A Easy Way Send Http Request

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  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.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Nx:

Package Downloads
Nx.DBUtility

A db util for easy sql query

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.8.0 1,605 3/10/2015
2.4.1.6 1,524 12/19/2014
2.4.1.5 1,493 12/19/2014
2.4.1.3 1,724 12/16/2014
2.4.1.2 1,339 12/15/2014
2.4.1.1 1,308 12/12/2014
2.4.1 1,555 12/12/2014
2.3.1.1 1,302 11/17/2014
2.3.1 1,912 11/16/2014
2.2.1.8 1,083 10/28/2014
2.2.1.5 1,084 10/21/2014
2.2.1.4 1,124 10/21/2014
2.2.1.3 1,059 10/14/2014
2.2.1.2 1,140 10/14/2014
2.2.1.1 1,103 10/14/2014
2.2.1 1,114 10/14/2014
2.1.0.2 1,306 9/29/2014

0x01:Simulation of the HTTP request ======================================
     
     var ctxIn = RequestBuilder.Create("default")
         .SetUrl("http://sample.com/api/sendmsg")
         .SetUserAgent("Nx Framework 2.4.1.0")
         .SetReferer("http://sample.com/api/login")
         .SetProxy(new WebProxy("127.0.0.1:8888")) //or .SetProxy(new WebProxy("127.0.0.1:8888",enable:true))
         .WithCookie("name=value") //or .WithCookies(List<Cookie> cookies) and so on.
         .AllowAutoRedirect(true)
         .SetHttpMethod("POST")
         .WithHeader("X-Token","x9v4d-d043b")
         .WithTextInput("user","tiny")
         .WithFileInput("file1","D:\a.txt")
         .WithBytesInput("file2",new byte[]{0x00,0x03,0x00,0x7f})
         .SetTimeout(3000)
         .UsingAjax()
         .DisableProxy() //or .EnableProxy()
         .Build();
         
     var ctxIn = RequestManager.GetResponse(ctxIn);
     if(ctxIn.Exception==null)
     {
         //if html, we have a nice intergration from Ivony's code(Jumony.Core) builtin.
         var document = respCtx.ResponseDocument;//get IHtmlDocument object.

         //Filter elements like JQUERY using the extensions from Ivony
         var theElements = document.AllElements().Find(".pager");
         
         //LINQ then
         //var matchedElemList = theElements.Where(...).ToList();
         
         //Get text directly
         var text = ctxIn.Text;
         
         //The stream, and other useful properties of IResponseContext
         var ms = ctxIn.Stream;
     }
     
     0x02:Read Text Based File EASY And FAST.====================================
     
     var file = new Nx.IO.TextFileInfo("d:\\d.txt");

     //random row
     while(true)
     {
         Console.WriteLine(file.RandomRow.Text);
     }

     //row items
     foreach(var item in file.RowItems)
     {
         //useful properties:
         
         //item.RowIndex
         //item.Text
         //item.IsEmptyLine
         //item.DataLength
     }

     0x03:ThreadSafeRandom =============================================
     
       see class Nx.ThreadSafeRandom
       
       
     For Who Wants Daily Source:
     SVN https://www.sandsea.info/svn/nxframework readonly by user "guest" with a pwd same as the name.
     
     Notes:It hosted on my own home small pc.Don't take it amiss if can not connect.
     
     I'm considering put this project on github someday.
     For this time, any suggestions or bugs can be submited by sending email to me(tiny@sandsea.info).
     
     [Updated at 2014.12.12 utc+8 (Beijing time)]
     

     UPDATE LOGS
     2.4.1.1
     Fix bug on determine if a request is multipart-form when build requst context

     2.4.1.0
     Many Bugs Fixed.
     With Ivony Html Extension Builtin.Thanks Ivony's code(Jumony.Core)
     Add Chaos.NaCl's cryto class

     2.3.0.0
     add support http post file using RequestBuilder.WithFileInput.
     the RequestBuilder.WithFormData changes to RequestBuilder.WithTextInput

     2.2.1.5
     fixed bug in Nx.TimeUtil.GetTimestamp()

     2.2.1.4
     small bug fix.

     2.2.1.3
     Add "HttpMethod PUT" support for the core request utils.

     2.2.1.2
     fix the bug that the post data does not submitted after use Nx.Net.RequestBuilder.SetHttpMethod("POST")