Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
XmlHttpRequestがURLを解決できないことを検出する方法はありますか?不正なURLでOpen(...)を呼び出すと、例外がスローされないようです。
HTTPステータスコードはゼロになります。 これは、接続を確立できず、プロキシが使用されていないネットワークの問題に適用されます。
おそらく404notfoundヘッダーが返されます。