Andrew Poulos
8/3/2014 5:11:00 AM
On 3/08/2014 8:08 AM, Thomas 'PointedEars' Lahn wrote:
> JJ wrote:
> ^^
> Please post here using your real name in the From header field.
>
>> On Thu, 31 Jul 2014 15:34:22 +1000, Andrew Poulos wrote:
>>> [â?¦]
>>> Using POST instead of PUT also makes no difference.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>> [â?¦]
>>
>> [â?¦]
>> What you want to upload seems like a simple data, and not a resource. It
>> shouldn't use PUT. [â?¦]
>
> Please look at what I marked above.
I've been working with what's called the TinCan library from Rustici
Software to track some elearning courses. At around line 1,730 there's
this for browsers that don't support (what they've called) XDomainRequest:
if (pairs.length > 0) {
fullUrl += "/?" + pairs.join("&");
}
When I'm POSTing, pairs length is zero and so URL doesn't have a
trailing slash. I changed their code to
fullUrl += "/";
if (pairs.length > 0) {
fullUrl += "?" + pairs.join("&");
}
and POSTing now works.
Andrew Poulos