To use a RESTful web service in C #, should I use HttpWebRequest?

How can I use a RESTful web service in C # code?

NOTE: RESTful, I mean non-SOAP. For example, in the flickr API, you can call their web service as follows to return JSON data:

http://api.flickr.com/services/feeds/photos_public.gne?tags=cats&tagmode=any&format=json

Am I just using HttpWebRequest?

What if I use a web service that accepts POST parameters? Will it use HttpWebRequest as well?

Is there any benefit to using WCF on the consumer side?

+3
source share
2 answers
+5

.NET Framework 3.5 Enhancements Training Kit, , , RESTFul. MS REST.

.

0

Source: https://habr.com/ru/post/1718417/


All Articles