Página 2 de 2

Re: Uso de API autenticacao de token

Enviado: 03 Abr 2026 09:35
por Alexandre Silva
tive esse retorno

<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>Bad Request</h1>
<h3>The request sent by the client was syntactically incorrect.</h3>
</body>
</html>

Re: Uso de API autenticacao de token

Enviado: 03 Abr 2026 09:57
por rochinha
Amiguinhos,

Mude:

Código: Selecionar todos

oHttp:Open("POST", cUrl, .F.)
oHttp:SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
oHttp:Send(cbody)
Por:

Código: Selecionar todos

oHttp:Open("POST", cUrl + "?" + cbody, .F.)
oHttp:SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
oHttp:Send("")