Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #13119
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Gregor Kofler <usenet@gregorkofler.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Safari XHR Error |
| Date | Thu, 29 Mar 2012 21:54:53 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 41 |
| Message-ID | <jl2emd$p07$1@dont-email.me> (permalink) |
| References | <4bd1f$4f7476a3$cf9b42fc$12752@ALLTEL.NET> <999c1$4f749935$cf9b42fc$31069@ALLTEL.NET> <jl29gi$nei$1@dont-email.me> <5527e$4f74ba3d$32601a7e$16566@ALLTEL.NET> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Thu, 29 Mar 2012 19:54:53 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="dQYTuvx5l8DfY2AFK/0Reg"; logging-data="25607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19aqRI1qWBfd8iY8aPc2Si0Yx3uNwHuhU8=" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120313 Thunderbird/11.0 |
| In-Reply-To | <5527e$4f74ba3d$32601a7e$16566@ALLTEL.NET> |
| Cancel-Lock | sha1:HOEw2/w4wqVTlVF/6FgQkPQaX7g= |
| Xref | csiph.com comp.lang.javascript:13119 |
Show key headers only | View raw
Am 2012-03-29 21:26, MC meinte: > On 3/29/2012 1:26 PM, Gregor Kofler wrote: >> Am 2012-03-29 19:05, MC meinte: >>> I found a solution for the problem. >>> >>> It seems that Safari will accepts a relative URL for the XHR but does >>> NOT post it to the root domain. Setting the the the URL to >>> "https://mydomain.com/ws/myaction.jsp" worked. It appears Safari was >>> posting relative, ie, my calling resource is located at >>> https://mydomain.com/someDir/somePage.html such that a URL of >>> "/ws/myaction.jsp" is posted to >>> "https://mydomain.com/someDir/ws/myaction.jsp". >>> >>> None of the other browsers do this..bug??? >> >> They are only forgiving and assuming: >> >> http://www.w3.org/TR/XMLHttpRequest/#the-open-method >> >> The draft requests a _URL_ >> >> <http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#url> >> >> >> Gregor >> >> > Gregor, > > The RFC3986 regarding URL's regards a relative URL references as valid, > if there is a - "'base URI'" exists against which > the relative reference is applied". > > It appears that Safari does indeed have a bug as it resolves the base > URI differently (incorrectly) from the other browsers. I'd still consider this not a bug. Anyway, you can use the information provided by the location object and safely obtain "compatible" absolute URIs. Gregor
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Safari XHR Error MC <news@aisus.com> - 2012-03-29 09:37 -0500
Re: Safari XHR Error Tim Streater <timstreater@greenbee.net> - 2012-03-29 15:45 +0100
Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 10:04 -0500
Re: Safari XHR Error Gregor Kofler <usenet@gregorkofler.com> - 2012-03-29 17:22 +0200
Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 12:05 -0500
Re: Safari XHR Error Gregor Kofler <usenet@gregorkofler.com> - 2012-03-29 20:26 +0200
Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 14:26 -0500
Re: Safari XHR Error Gregor Kofler <usenet@gregorkofler.com> - 2012-03-29 21:54 +0200
Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 15:24 -0500
Re: Safari XHR Error Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-03-29 22:28 +0200
Re: Safari XHR Error David Mark <dmark.cinsoft@gmail.com> - 2012-03-29 18:06 -0700
Re: Safari XHR Error "Richard Cornford" <Richard@litotes.demon.co.uk> - 2012-03-29 21:39 +0100
Re: Safari XHR Error MC <news@aisus.com> - 2012-03-29 16:07 -0500
Re: Safari XHR Error Scott Johnson <noonehome@chalupasworld.com> - 2012-03-29 17:30 -0700
Re: Safari XHR Error "Richard Cornford" <Richard@litotes.demon.co.uk> - 2012-03-30 01:46 +0100
Re: Safari XHR Error David Mark <dmark.cinsoft@gmail.com> - 2012-03-29 14:54 -0700
csiph-web