在我的开发机器上,我有一个 PHP 程序,它在 Tomcat 9 上托管的 Web 服务上运行 HTTP put 请求。
每次通话都会收到 409 错误。该请求似乎被阻止,下面是我得到的详细错误响应,但我不知道如何诊断和修复它。
请指教。
[httpResponse] => Array
(
[status] => 409
[headers] => Array
(
[contentType] => text/html
[date] => Wed, 14 Apr 2021 16:24:38 GMT
[contentTypeCharset] => utf-8
)
[_content] => <!doctype html><html lang="fr"><head><title>État HTTP 409 – Conflit</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>État HTTP 409 – Conflit</h1><hr class="line" /><p><b>Type</b> Rapport d'état</p><p><b>description</b> La requête ne peut être finalisée suite à un conflit lié à l'état de la ressource.</p><hr class="line" /><h3>Apache Tomcat/9.0.39</h3></body></html>
[_metadata] => Array
(
[crypto] => Array
(
[protocol] => TLSv1.2
[cipher_name] => ECDHE-RSA-AES256-GCM-SHA384
[cipher_bits] => 256
[cipher_version] => TLSv1.2
)
[timed_out] =>
[blocked] => 1
[eof] =>
[wrapper_data] => Array
(
[0] => HTTP/1.1 409
[1] => Keep-Alive: timeout=20
[2] => Content-Type: text/html;charset=utf-8
[3] => Content-Language: fr
[4] => X-Powered-By: ARR/3.0
[5] => Date: Wed, 14 Apr 2021 16:24:38 GMT
[6] => Connection: close
[7] => Content-Length: 641
)
[wrapper_type] => http
[stream_type] => tcp_socket/ssl
[mode] => rb
[unread_bytes] => 641
[seekable] =>
[uri] => https://my.localdomain.com/1/XAPI/statements?statementId=039f38f7-9426-4007-bc03-544dfd8d3cad
)
)