GithubHelp home page GithubHelp logo

fslib.network's Issues

无法将类型为“System.Net.SyncMemoryStream”的对象强制转换为类型“System.Net.ConnectStream”。

无法将类型为“System.Net.SyncMemoryStream”的对象强制转换为类型“System.Net.ConnectStream”。

堆栈信息:

在 lambda_method(Closure , Stream )
在 FSLib.Network.Http.SocketInfoProvider.GetRawSocketFromStream(Stream stream)
在 FSLib.Network.Http.ConnectionInfo.SetStream(Boolean isRequest, Stream stream)
在 FSLib.Network.Http.HttpContext.GetResponseCallback(Action getResponseAction)

此库导致无法利用net自带的发送邮件

https://github.com/iccfish/fslib.network/blame/master/src/FSLib.Network/Http/HttpClient.cs#L35

ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) =>
{
var e = new CertificateValidationEventArgs((HttpWebRequest)sender, sslPolicyErrors, chain, certificate);
}

这里的设置是全局的 我发邮件的时候系统也会调这个 此时sender 是 smtpclient 强制转化就抛异常了 , 建议 用 as 判断null

有没有比BeforeRequest 更晚点的事件呢

我是想 在 发出请求前, 加个 协议头 对 post的内容进行 签名, 但如果 post的是一个对象 beforerequest 事件里 获取到的还是一个对象。。 不是字符串或者说byte[] 无法签名,请问这个可以做到吗, 同样 服务端返回的时候也要做这个这样的校验

[feature]CookieContainer 增加 保存跟恢复

好像.net自身对这个cookie 的处理上又有bug,网上也没什么好的解决方法,搜了 stackoverflow 几乎也都相同的解决方法,解析回来的cookie还跟原来的不一样。不知道鱼儿能解决这问题么

请求成功但是IsSuccess为false

请求成功,但是IsSuccess值为false。debug发现,发生Exception:“Unable to find a constructor to use for type FSLib.Network.Http.RequestJsonContent. A class should either have a default constructor, one constructor with arguments or a constructor marked with the JsonConstructor attribute. Path 'Version', line 1, position 11.”

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.