Do you know how to use curl or DB2 clob HTTP calls ?
Not an answer but a couple other methods to test.
Regards,
Richard Schoen
Web:
http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
----------------------------------------------------------------------
message: 1
date: Thu, 18 Sep 2025 19:36:17 +0000
from: Greg Wilburn <gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>
subject: RE: Walmart Marketplace API
So I am still struggling here... I am able to connect to this API and receive an Access Token using Postman. However, I cannot seem to connect successfully from a simple RPG pgm using HTTPAPI (something I use all the time).
I've even compared the HTTP request in Postman to the HTTPAPI debug file. I even compared the Base64 encoded "Authorization" in Notepad++.
Differences:
1. Postman has a "cookie"
2. Headers are in a different order
Any ideas? I'm at a complete loss.
Postman HTTP (successful):
POST /v3/token HTTP/1.1
Host: marketplace.walmartapis.com
WM_SVC.NAME: Walmart Marketplace
Accept: application/json
User-Agent: http-api/1.43
Content-Type: application/x-www-form-urlencoded
Authorization: Basic YTJlZTE.....
Cookie: ak_bmsc=.......p4aGV/sU=~1
Content-Length: 29
grant_type=client_credentials
HTTPAPI (unsuccessful):
POST /v3/token HTTP/1.1
Host: marketplace.walmartapis.com
User-Agent: http-api/1.43
Content-Type: application/x-www-form-urlencoded
Content-Length: 29
Authorization: Basic YTJlZTE...
WM_SVC.NAME: Walmart Marketplace
Accept: application/json
senddoc(): entered
grant_type=client_credentials
recvresp(): entered
SetError() #44: CommTCP_read: Socket has been shut down.
recvresp(): end with err
http_close(): entered
As an Amazon Associate we earn from qualifying purchases.