문제

I am trying to implement a Sample application in Android which gets the malware and phishing list from safe Browsing API and checks the authenticity of URL, this is client side method, but I am constantly getting 400 (Bad Request) as response code when I am trying to hit the URL.

Searched throughout the internet but couldn't get any sample working code.

Even on Developer's Guide page https://developers.google.com/safe-browsing/developers_guide_v2 it is not mentioned how to send the list name correctly in POST request for downloading or updating.

Please help me by providing the correct procedure of how to send list name (if code snippet can be posted, it would be great as I am new to Android.)

도움이 되었습니까?

해결책

Check out that request should end with '\n'. It is common to ignore this. I hope it helps.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top