Closed Bug 1365027 Opened 9 years ago Closed 9 years ago

Add $httpMethod=POST to the query string of Safe Browsing pver4 requests

Categories

(Toolkit :: Safe Browsing, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: francois, Assigned: dimi)

References

Details

(Whiteboard: #sbv4-m7)

Attachments

(1 file)

One of the things that would explain the 404s we are seeing on the Safe Browsing V4 endpoint (updates and completions): https://mzl.la/2puc95V https://mzl.la/2pDpw3T is the absence of the X-HTTP-Method-Override header which we set on updates and completions: https://searchfox.org/mozilla-central/rev/e2e90c1b4e8f86ba3df4aa189386b6102627c475/toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.cpp#158-173 https://searchfox.org/mozilla-central/rev/484d2b7f51b7aed035147bbb4a565061659d9278/toolkit/components/url-classifier/nsUrlClassifierHashCompleter.js#443 The likely culprit is anti-virus MITM proxies that could drop this header. There is a work-around that should work: adding "&$httpMethod=POST" to the query string. This will cause the Google front-end servers to change the request into a POST request even if the header is missing.
Blocks: 1362484
Summary: Add $httpMethod=POST to Safe Browsing pver4 requests → Add $httpMethod=POST to the query string of Safe Browsing pver4 requests
Assignee: nobody → dlee
Status: NEW → ASSIGNED
Comment on attachment 8868078 [details] Bug 1365027 - Add $httpMethod=POST to the query string of Safe Browsing pver4 requests. https://reviewboard.mozilla.org/r/139692/#review143206
Attachment #8868078 - Flags: review?(francois) → review+
Pushed by dlee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3876e96601b1 Add $httpMethod=POST to the query string of Safe Browsing pver4 requests. r=francois
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: