2011-01-30 6 views
-1

누군가가이 영역에서 경험을 쌓아서 무엇이 진행되고 있는지 알기를 바랍니다.Youtube API 잘못된 요청 400

내 질문에 api를 통해 YouTube에 비디오를 업로드하려고 할 때 잘못된 요청이 400 번 발생합니다. 나는 .net 라이브러리를 사용하고 있으며, 로컬로 성공적으로 업로드 할 수 있지만, discountasp에서의 호스팅에 원격으로 업로드 할 수는 없습니다. 다음은 내가 나타나는 오류 메시지입니다하지만 당신이 말할 수있는 당신의 코드 또는이 대답 할 수없는 전송되는 요청없이 많은 정보

The remote server returned an error: (400) Bad Request.

[WebException: The remote server returned an error: (400) Bad Request.] System.Net.HttpWebRequest.GetResponse() +6038435 Google.GData.Client.GDataRequest.Execute() +85

[GDataRequestException: Execution of request failed: http://uploads.gdata.youtube.com/feeds/api/users/default/uploads] Google.GData.Client.GDataRequest.Execute() +228 Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +487
Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +523
Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +523
Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +523
Google.GData.Client.GDataGAuthRequest.Execute() +10 Google.GData.Client.MediaService.EntrySend(Uri feedUri, AtomBase baseEntry, GDataRequestType type, AsyncSendData data) +541
Google.GData.Client.Service.Insert(Uri feedUri, AtomEntry newEntry, AsyncSendData data) +88
Google.GData.Client.Service.Insert(Uri feedUri, TEntry entry) +58
Google.GData.YouTube.YouTubeService.Upload(String userName, YouTubeEntry entry) +98

+0

피들러 (http://www.fiddlertool.com/)를 사용하여 클라이언트가 서버로 정확히 무엇을 보내고 있는지, 정확히 무엇이 응답인지 확인하는 것이 좋습니다. 도움이되지 않으면 여기에 붙여 넣으십시오. – sinelaw

+0

사실 내가 로컬로 업로드 할 수 있지만 이것에 대해 아무 말도하지 않고 원격으로 업로드 할 수 있습니까? –

+0

문제를 해결하기에 충분하지 않습니다. – sinelaw

답변

0

를 보유하지 않지만, 내가 확인 것이 먼저입니다 :

가) 요청 구조 - 올바른 형식, 인수, 경로

b)는 당신이 전달하는 매개 변수의 인코딩 : 나는 상상이가 URL 인코딩해야합니다. 예를 들어 매개 변수에 '/'가 포함 된 경우이 매개 변수는 경로 구분 기호로 해석됩니다.

관련 문제