本文介绍了是否有任何REST库,在那里与便携式类库的工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一种便携式类库,需要做出REST请求,并正在寻找类似Restsharp或EasyHttp。不幸的是这些都不目前与PCLS工作。这也将是不错要么看到,确实有基本身份验证的POST请求的例子。

I am developing a portable class library that needs to make REST requests and am looking for something like Restsharp or EasyHttp. Unfortunately neither of these currently work with PCLs. It would also be nice to either see an example that does a post request with basic authentication.

如果没有什么是出于没有任何人有我会怎么做一个例子基本身份验证POST请求?

If there is nothing out does anyone have an example of how I would do a post request with basic authentication?

推荐答案

如果你的目标4.5或Windows Store应用程序,您可以使用HttpClient的为PCL。否则,你可以尝试破解,并在

if you target 4.5 or Windows Store apps you can use HttpClient as PCL. Otherwise you can try the hack and slash PCL port of RestSharp at https://github.com/Geodan/geoserver-csharp/tree/master/RestSharp

这篇关于是否有任何REST库,在那里与便携式类库的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 16:01