아래 코드에서 404 오류가 발생합니다. 나는 문자열의 쿼리 부분은 비주얼 C# 익스프레스 2010을 실행 해요 :Google 검색 API의 오류 404
q%3dAction%2bMotivation%2c%2bInc.%2bSouth%2bSan%2bFrancisco%2b%26alt%3djson%26start%3d0%26num%3d10"
string searchString =
"https://www.googleapis.com/customsearch/v1%3fkey%3d{APIkey}%26cx%3d{cxkey}%26q%3dAction%2bMotivation%2c%2bInc.%2bSouth%2bSan%2bFrancisco%2b%26alt%3djson%26start%3d0%26num%3d10";
WebRequest myRequest = WebRequest.Create(searchString);
HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse();
왜 '&'와'='부분을 이스케이프 처리합니까? 그리고 '?'가없는 이유는 무엇입니까? 'https://www.googleapis.com/customsearch/v1?key='와 같은 것을 기대할 수 있습니다. .. & cx = ... & q = Action % 2bMotivation % 2c' 등 ('...'이 실제 열쇠로 채워지는 곳) –