Google a me risponde correttamente da quell'url, con quei headers. Puoi aggiungere il tuo $url?
Errore 400 significa
quindi controlla cosa stai inviando.The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.