From b0e70fb747a1dcfd04f93bd69ad3a5d49cbd588e Mon Sep 17 00:00:00 2001
From: ra00l <raul.popescu@gmail.com>
Date: Sun, 12 Jul 2015 12:56:32 +0300
Subject: [PATCH] added curl alternative code

The code is in C#, but the concept will work in any language.
---
 sections/authentication.mdown | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sections/authentication.mdown b/sections/authentication.mdown
index 842ef28..9fe35f1 100644
--- a/sections/authentication.mdown
+++ b/sections/authentication.mdown
@@ -17,6 +17,11 @@ Example:
 curl -i -X PUT -H 'Content-Type: application/xml' -u {username}:{password} -d "..." https://api.fastspring.com/...
 ```
 
+For those that don't have curl available (for example asp.net mvc) you can use the "Authentication" header:
+``` C#
+string credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes("username:password"));
+webClientInstance.Headers[HttpRequestHeader.Authorization] = string.Format("Basic {0}", credentials);
+```
 
 Company, Username, Password
 ---------------------------
@@ -25,4 +30,4 @@ As noted in the example, each request will require 3 key pieces of authenticatio
 
 * `{company}` is the case sensitive Company ID which you use to login to SpringBoard.
 * `{username}` is the case sensitive username of the special API user you created via SpringBoard.
-* `{password}` is the case sensitive password of the API user.
\ No newline at end of file
+* `{password}` is the case sensitive password of the API user.