着信 Content-Type が明示的であることを期待するサードパーティ ソフトウェアがあります。
application/x-www-form-urlencoded
ただし、以下の ASP スクリプトでは、要求ヘッダーを適切に設定しても、ASP は実際には次のように送信しています。
application/x-www-form-urlencoded; 文字セット=utf-8
その結果、認証が失敗し、サードパーティであるため、将来の更新で変更が上書きされる可能性があるため、自分でパッチを適用する自由がない場合があります.
Content-type を明示的に強制し、"; charset=utf-8" が追加されないようにするにはどうすればよいでしょうか?
<%
'IRISLink.cgi expects application/x-www-form-urlencoded
Dim obHTTP
obHTTP.open "POST", "https://" & DWHost & "/IRISLink.cgi", False
obHTTP.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
obHTTP.Send strPost
Set obHTTP = Nothing
'Failure - Actual Content-type received was: application/x-www-form-urlencoded; charset=utf-8
%>