Web Connection
Using wwHttp to consume an electronic-invoicing REST API (POST + raw JSON + bearer token)
Gravatar is a globally recognized avatar based on your email address. Using wwHttp to consume an electronic-invoicing REST API (POST + raw JSON + bearer token)
  Marco Antonio Sepulveda Valbuena
  All
  Nov 7, 2025 @ 12:49pm

Hello, We need to call an electronic-invoicing REST endpoint that requires: HTTP POST method Raw JSON body (NOT form-data) Header Authorization: Bearer Capture the JSON response returned by the server We are using the wwHttp (WinInet) class in Visual FoxPro 9. When we use the HttpGet() method the server replies “JSON must not be empty”, because the body is never sent. Could you please provide the exact snippet (or a small example) showing how to: Send the JSON stored in a variable cFileJson Store the response in another variable cResponse Thank you in advance for your help. Best regards,

© 1996-2025