Update the URL format for sending V4 requests to the SafeBrowsing server. Update requests: https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$ct=application%2Fx-protobuf&$req=<request_payload>&key=<api key> Hash requests: https://safebrowsing.googleapis.com/v4/fullHashes:find?$ct=application%2Fx-protobuf&$req=<request_payload>&key=<api key> 2. Both update and hash requests should define an additional HTTP request header: X-HTTP-Method-Override: POST To test, run the following command: $ curl -o /tmp/v4_threatListUpdates.proto --header "X-HTTP-Method-Override: POST" 'https://safebrowsing.googleapis.com/v4/threatListUpdates:fetch?$ct=application/x-protobuf&$req=CioKH3NhZmV0eW5ldF9zYWZlX2Jyb3dzaW5nX3VwZGF0ZXISBzc4MDEwMDAaDggBEAEiCAiAEBCAECAB&key=<my_api_key>'
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/377c783165d3e992e5475c797e77d654c824b49b commit 377c783165d3e992e5475c797e77d654c824b49b Author: vakh <vakh@chromium.org> Date: Fri Jun 10 04:28:13 2016 Replace the old URL format for PVer4 requests with the new format. The new URL format is described in the bug. The old format doesn't seem to be working currently so this is a good time to switch. See: http://b/29229908 BUG= 603348 , 543161 Review-Url: https://codereview.chromium.org/2057433002 Cr-Commit-Position: refs/heads/master@{#399087} [modify] https://crrev.com/377c783165d3e992e5475c797e77d654c824b49b/components/safe_browsing_db/v4_get_hash_protocol_manager.cc [modify] https://crrev.com/377c783165d3e992e5475c797e77d654c824b49b/components/safe_browsing_db/v4_get_hash_protocol_manager.h [modify] https://crrev.com/377c783165d3e992e5475c797e77d654c824b49b/components/safe_browsing_db/v4_protocol_manager_util.cc [modify] https://crrev.com/377c783165d3e992e5475c797e77d654c824b49b/components/safe_browsing_db/v4_protocol_manager_util.h [modify] https://crrev.com/377c783165d3e992e5475c797e77d654c824b49b/components/safe_browsing_db/v4_protocol_manager_util_unittest.cc [modify] https://crrev.com/377c783165d3e992e5475c797e77d654c824b49b/components/safe_browsing_db/v4_update_protocol_manager.cc [modify] https://crrev.com/377c783165d3e992e5475c797e77d654c824b49b/components/safe_browsing_db/v4_update_protocol_manager.h
Comment 1 by vakh@chromium.org
, May 6 2016