allows other http methods
This commit is contained in:
parent
7e590dfb84
commit
4a1c638933
1 changed files with 2 additions and 2 deletions
|
|
@ -38,10 +38,10 @@ namespace Yavsc.Helpers
|
|||
/// Initializes a new instance of the Yavsc.Helpers.SimpleJsonPostMethod class.
|
||||
/// </summary>
|
||||
/// <param name="pathToMethod">Path to method.</param>
|
||||
public SimpleJsonPostMethod (string pathToMethod, string authorizationHeader = null)
|
||||
public SimpleJsonPostMethod (string pathToMethod, string authorizationHeader = null, string method = "POST")
|
||||
{
|
||||
request = (HttpWebRequest) WebRequest.Create (pathToMethod);
|
||||
request.Method = "POST";
|
||||
request.Method = method;
|
||||
request.Accept = "application/json";
|
||||
request.ContentType = "application/json";
|
||||
request.SendChunked = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue