Java의 dev_appserver
과 실시간 App Engine 서버간에 불일치가 발견되었습니다.App Engine HTTP 상태 코드 메시지
Status Code:400 Please log in to comment
문제 : 나는 페이지에 액세스 할 때
return response.sendError(response.SC_BAD_REQUEST, "Please log in to comment");
내가 돌아 헤더의 상태 코드 메시지를 얻을 : 내 로컬 개발 서버에서
나는 반환하는 서블릿을 이를 App Engine에 배포하면됩니다. 같은 서블릿 것을 액세스 할 때 나는 대신에 "코멘트를 로그인하십시오"이 "잘못된 요청"을 얻을 :
Status Code:400 Bad Request
는에서와 같이 Please log in to comment
상태 코드 메시지 헤더의 콘텐츠 HTML에 나타납니다,하지만 개발 환경.
왜 이런가요?
편집은
여기 dev_appserver과 생산 모두에 대한 curl -vvvv
흔적입니다 :
dev_appserver 컬 추적 :
> POST /add-comment HTTP/1.1
> User-Agent: Mozilla/4.0
> Host: localhost:8080
> Accept: */*
> Content-Length: 9
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 400 Please log in to comment
< Content-Type: text/html; charset=iso-8859-1
< Cache-Control: must-revalidate,no-cache,no-store
< Content-Length: 1406
< Server: Jetty(6.1.x)
생산 컬 추적 :
> POST /add-comment HTTP/1.1
> User-Agent: Mozilla/4.0
> Host: www.xxx.org
> Accept: */*
> Content-Length: 9
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 400 Bad Request
< Content-Type: text/html; charset=utf-8
< Vary: Accept-Encoding
< Date: Thu, 18 Aug 2011 14:04:26 GMT
< Server: Google Frontend
< Cache-Control: private
< Transfer-Encoding: chunked
devappserver와 production이라는 두 호출에 curl -vvvv trace를 추가 할 수 있습니까? – proppy
@proppy : edited –