(no subject)
Friday, 10 May 2019 · 4 messages · last reply 13 May 2019
CR
Chantal Ragy10 May 2019 21:18 #
Hi everyone,
i am trying to send a post request to google token endpoint. However, I am not able to send a list of parameters in the POST request. Does anyone have an idea how to do so?
Thank you in advance
CG
Christian Grün13 May 2019 12:21 #
Quoted text · Chantal Ragy · 2 lines
> i am trying to send a post request to google token endpoint. However, I am not able to send a list of parameters in the POST request. > Does anyone have an idea how to do so?
What did you try so far?
CG
Christian Grün13 May 2019 17:20 #
Did you already manage to send a successful request via curl or via any other ways?
Quoted text · Chantal Ragy · 22 lines
On Mon, May 13, 2019 at 12:25 PM Chantal Ragy <chantalragy1997 at gmail.com> wrote: > Hi Christian, > > i am trying to send Google a POST request and provide the server with > requested parameters. However, it compiles with an error of either missing > content length or of missing required parameter, although all the > parameters are actually provided. > > > On May 13, 2019, at 12:21 PM, Christian Grün <christian.gruen at gmail.com> > wrote: > > i am trying to send a post request to google token endpoint. However, I am > not able to send a list of parameters in the POST request. > Does anyone have an idea how to do so? > > > What did you try so far? > > >
CG
Christian Grün13 May 2019 17:48 #
Quoted text · Christian Grün · 1 line
> Yes. I tried sending the request to Google via an online took. As a matter of fact, I also tried to send it in an HTML form and I got a correct response.
In that case, you could compare your XQuery string with the HTTP request data that is sent by the browser.
Quoted text · Christian Grün · 24 lines
> On May 13, 2019, at 5:20 PM, Christian Grün <christian.gruen at gmail.com> wrote: > > Did you already manage to send a successful request via curl or via any other ways? > > > > On Mon, May 13, 2019 at 12:25 PM Chantal Ragy <chantalragy1997 at gmail.com> wrote: >> >> Hi Christian, >> >> i am trying to send Google a POST request and provide the server with requested parameters. However, it compiles with an error of either missing content length or of missing required parameter, although all the parameters are actually provided. >> >> <Screen Shot 2019-05-13 at 12.22.53 PM.png> >> >> On May 13, 2019, at 12:21 PM, Christian Grün <christian.gruen at gmail.com> wrote: >> >> i am trying to send a post request to google token endpoint. However, I am not able to send a list of parameters in the POST request. >> Does anyone have an idea how to do so? >> >> >> What did you try so far? >> >> >
Written for BaseX 9.2. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery