Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #25614
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: XHR giving 405 |
| Date | Sun, 03 Aug 2014 09:43:15 +0200 |
| Organization | PointedEars Software (PES) |
| Lines | 29 |
| Message-ID | <11731815.6KERGQWCj8@PointedEars.de> (permalink) |
| References | <9sadnbL6a8-KS0TOnZ2dnUVZ_tKdnZ2d@westnet.com.au> <4e2chb4g81mw.3qus2sg5140u$.dlg@40tude.net> <1789411.yMKPfb8zHj@PointedEars.de> <ja2dncw4V82KWEDOnZ2dnUVZ_tadnZ2d@westnet.com.au> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1407051797 15397 eJwFwQkRwEAIBDBLMLBA5SzP+ZfQBBYakx4Ix8OjNG0Poi36PIt7c9TPzyiXhu2p6TUv5uwPNF0SNw== (3 Aug 2014 07:43:17 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Sun, 3 Aug 2014 07:43:17 +0000 (UTC) |
| User-Agent | KNode/4.12.4 |
| X-User-ID | eJwNyskBwCAIBMCWQHc5ylGE/ktI5j3cplYOo4HDMR4+jwVRpLRFnxLR8kpSG3myNRxrT1yRrrH7RoDCXzI/MrYU4w== |
| Cancel-Lock | sha1:RtTM/mAT+kCg3G5+buopFhbuz2w= |
| X-NNTP-Posting-Host | eJwNxsEBwCAIA8CVJEhS5wGz/wj1XlfJYGuzuMvlzpsXqItYAEaHGjv0hqVgyMeDpKv76x8LvBCu |
| Xref | csiph.com comp.lang.javascript:25614 |
Show key headers only | View raw
Andrew Poulos wrote:
> 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.
It is strange software where the trailing slash in a URI is necessary.
Do they encodeURIComponent() the elements of “pairs” before join()ing it?
--
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
XHR giving 405 Andrew Poulos <ap_prog@hotmail.com> - 2014-07-31 15:34 +1000
Re: XHR giving 405 Andrew Poulos <ap_prog@hotmail.com> - 2014-07-31 16:45 +1000
Re: XHR giving 405 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-07-31 09:58 +0200
Re: XHR giving 405 Scott Sauyet <scott.sauyet@gmail.com> - 2014-08-01 11:20 -0700
Re: XHR giving 405 JJ <jj4public@vfemail.net> - 2014-07-31 14:20 +0700
Re: XHR giving 405 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-03 00:08 +0200
Re: XHR giving 405 Andrew Poulos <ap_prog@hotmail.com> - 2014-08-03 15:10 +1000
Re: XHR giving 405 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-03 09:43 +0200
Re: XHR giving 405 Andrew Poulos <ap_prog@hotmail.com> - 2014-08-03 19:16 +1000
Re: XHR giving 405 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-03 19:16 +0200
Re: XHR giving 405 Andrew Poulos <ap_prog@hotmail.com> - 2014-08-04 07:29 +1000
Re: XHR giving 405 John Harris <niam@jghnorth.org.uk.invalid> - 2014-08-03 16:46 +0100
Re: XHR giving 405 Tim Streater <timstreater@greenbee.net> - 2014-08-03 16:51 +0100
Re: XHR giving 405 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-03 18:39 +0200
Re: XHR giving 405 John Harris <niam@jghnorth.org.uk.invalid> - 2014-08-04 15:08 +0100
Re: XHR giving 405 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-04 19:12 +0200
Re: XHR giving 405 John Harris <niam@jghnorth.org.uk.invalid> - 2014-08-06 14:25 +0100
Re: XHR giving 405 Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-08-06 20:20 +0100
Re: XHR giving 405 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-07 21:13 +0200
csiph-web