:오류 (400) 잘못된 요청 나는 다음과 같은 코드를 사용하여 세이버 API 연결을 시도하고
: 나는 다음과 같은 오류를 얻고있다 그러나Server Error in '/' Application.
The remote server returned an error: (400) Bad Request.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (400) Bad Request.
Source Error:
Line 49:
Line 50: ' Get response
Line 51: response2 = DirectCast(request2.GetResponse(), HttpWebResponse)
Line 52:
Line 53: ' Get the response stream into a reader
Dim u As String = "https://developer.sabre.com/io-docs/call-api"
' Create the web request
request2 = DirectCast(WebRequest.Create(u), HttpWebRequest)
' Get response
response2 = DirectCast(request2.GetResponse(), HttpWebResponse)
' Get the response stream into a reader
reader2 = New StreamReader(response2.GetResponseStream())
' Console application output
' MsgBox(reader.ReadToEnd())
Response.Write(reader.ReadToEnd())
을
성취하려는 것을 공유 할 수 있습니까? URL (https://developer.sabre.com/io-docs/call-api)로 이동하면됩니다. -> 다음과 같이 표시됩니다. "양식을 제출할 때 문제가 발생했습니다." – Wisdoom
나는 api를 호출하기를 원한다. 나는 API를 온라인으로 테스트했을 때 나에게주는 링크를 사용했다. –
또한 내 코드를 변경 했는데도 여전히 같은 결과를 보였다. 단지 api를 호출하는 방법을 원한다. 내 코드가 –