HTTP 303
| HTTP |
|---|
| Metode permintaan |
| Kotak kepala |
| Kode status |
| Metode kontrol akses keamanan |
Kode status tanggap HTTP 303 See Other adalah cara mengalihkan aplikasi web menuju URI baru, khususnya setelah HTTP POST dilakukan (sejak RFC 2616/HTTP 1.1).
Menurut RFC 7231, yang memperbarui RFC 2616,
"A 303 response to a GET request indicates that the origin server does not have a representation of the target resource that can be transferred by the server over HTTP. However, the Location field value refers to a resource that is descriptive of the target resource, such that making a retrieval request on that other resource might result in a representation that is useful to recipients without implying that it represents the original target resource."
("Respons 303 terhadap permintaan GET menunjukkan bahwa server asal tidak memiliki representasi sumber daya target yang dapat ditransfer oleh server melalui HTTP. Namun, nilai Lokasi merujuk ke sumber daya yang deskriptif dari sumber daya target, sehingga membuat permintaan pengambilan sumber daya lain yang mungkin menghasilkan representasi yang berguna bagi penerima tanpa menyiratkan bahwa itu mewakili sumber daya target asli.")
Tanggapan ini menunjukkan bahwa tanggapan yang benar dapat ditemukan di bawah URI yang berbeda dan harus dapat diakses menggunakan metode GET. URI bukanlah rujukan pengganti untuk sumber aslinya.
Kode status ini harus digunakan bersama kepala lokasi.
Penggunaan
303 See Other adalah salah satu cara menanggapi permintaan URI yang menandakan objek dunia nyata menurut praktik web semantik (cara lainnya adalah penggunaan hash URI).[1]
Contoh
Permintaan klien:
GET / HTTP/1.1 Host: www.example.com
Tanggapan peladen:
HTTP/1.1 303 See Other Location: http://example.org/
Lihat pula
- RFC 2616 (HTTP 1.1)
- RFC 1945 (HTTP 1.0)
- Protokol Transfer Hiperteks
- Daftar kode status HTTP
- Post/Redirect/Get
Referensi
- ^ Cool URIs for the Semantic Web Diarsipkan 2020-12-02 di Wayback Machine., see section 4
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.