POST using CURL in PHP gives invalid request Error

后端 未结 5 615
花落未央
花落未央 2021-01-19 23:37

I am using below post method for google account using curl but it gives me invalid_request error.

POST /o/oauth2/token HTTP/1.1
Host: accounts.google.com
Con         


        
5条回答
  •  情歌与酒
    2021-01-19 23:58

    The response to your request actually includes a very readable description of the problem:

    POST requests require a Content-length header.

提交回复
热议问题