Kenneth Hsu
ffaaa55f2f
Use AsyncHttpRequest to handle async HttpWebRequests.
...
For some reason, when using HttpWebRequest.GetRequestStreamAsync, the
Amazon Cloud Drive and Box backends would fail when attempting to upload
larger amounts of data (these are the only backends that use the
PostMultipartAsync method).
This fixes issue #3756 .
2019-05-04 16:38:36 -07:00
Sean Templeton
8bd4b825c8
Fix several Codacy issues
2019-03-13 21:51:05 -05:00
Sean Templeton
c3472823de
Update HubiC and OpenStack backends for async Put
2019-03-05 21:08:26 -06:00
Sean Templeton
5db326bcdb
Update Azure Blob and Backblaze B2 backends for async Put
2019-03-05 21:08:24 -06:00
Sean Templeton
b1c6e9798d
Update Amazon Cloud Drive backend for async Put
2019-03-05 21:08:14 -06:00
verhoek
55e349f410
Renamed variable to indicate meaning properly.
2018-05-09 18:57:04 +02:00
Tyler Gill
f9a8b30b2f
Update JSONWebHelper.PostAndGetJSONData to remove parameters that aren't actually being used (setup and setupreq).
...
These parameters weren't being used in the method body, or being passed in by any callers (it looks like a copy / paste error when a previous method was converted into this one)
These are replaced with a new optional parameter (method) which allows the caller to request a custom HTTP method to be used.
2018-03-20 13:56:05 -06:00
Kenneth Hsu
5fb1958ceb
Remove redundant calls to ToString.
2017-11-26 15:44:34 -08:00
Kenneth Skovhede
a7b46b622c
Spelling fix in documentation
2017-03-03 20:50:11 +01:00
Kenneth Skovhede
0c68daff6c
Fixed all whitespace to be 4 spaces instead of tabs
2016-09-15 11:39:27 +02:00
Kenneth Skovhede
5f7e63ae78
Fixed the timeout issue
2016-04-16 17:51:44 +02:00
Kenneth Skovhede
d0711011a2
Rewrote all WebRequest code to use AsyncHttpRequest, and normalized usage such that WebResponse objects are always correctly disposed.
2016-04-16 11:12:28 +02:00
Kenneth Skovhede
5e35d30a61
Added support for multi-part uploads in the helper class
2015-12-07 09:53:13 +01:00
Kenneth Skovhede
a9e34a1625
Virtualized some methods in the JSONHelper and added a method for capturing custom error messages
2015-12-05 14:19:44 +01:00
Kenneth Skovhede
a53686d1d0
Moved the JSON helper methods out of the OAuthHelper and into the JSONHelper class.
...
Added a new method to also POST JSON data.
2015-12-05 11:27:21 +01:00
Kenneth Skovhede
9517af31cc
Removed some unused variables and improved the use of a non-standard --oauth-url
2015-08-25 16:02:33 +01:00
Kenneth Skovhede
6dac0f3c2e
Fixed an invalid line-ending character
2015-08-05 13:51:56 +02:00
Kenneth Skovhede
a359b3bbae
The OAuthHelper was a mix of JSON web requests and OAuth calls, so now it has been split into two.
2015-07-01 09:39:13 +02:00