سؤال

I'm thinking about integrating Spreedly into my webapp to handle the payments & subscriptions. It's a .Net MVC app, however I could do the payment form in .Net Web Forms if needs be.

I'm just looking through the Spreedly API documentation, and the examples appear to use curl commands which I am very unfamiliar with, e.g. example .

I've googled (and maybe I'm googling for the wrong thing) and while I get lots of websites giving me lots of different examples of curl commands, I am still unsure how to actually use them in the context of a .Net web page?

Any help/links/etc to enlighten me would be much appreciated :)

هل كانت مفيدة؟

المحلول

Here's a question that discusses implementing a cURL request using a C# WebRequest -

cURL with user authentication in C#

Here's the .NET binding on the cURL website -

http://curl.haxx.se/libcurl/dotnet/

Finally, this Google search got me a sizable number of results, which seem to be relevant to what you're looking for -

http://www.google.com/search?hl=en&q=C%23+.NET+cURL

نصائح أخرى

I've implemented a NuGet package that could help you....

You can also browse the code on GitHub to see how curl maps to HttpClient, for example...

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top