RE: Walmart Marketplace API
Richard Schoen <richard-DiTrGpQEJGItADg8e/3/[email protected]>
| Newsgroups | gmane.comp.lang.as400.rpg |
|---|---|
| Message-ID | <CH0PR12MB5250025B45EA9E1709A23FFEB711A@CH0PR12MB5250.namprd12.prod.outlook.com> |
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-DiTrGpQEJGItADg8e/3/[email protected] ---------------------------------------------------------------------- message: 1 date: Thu, 18 Sep 2025 19:36:17 +0000 from: Greg Wilburn <gwilburn-kuYYJ3CQfvZxq3Q2jbZZw/[email protected]> 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 -- This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request-+hD5IHI5Xscn3HwCXmMcX9BPR1lH4CV8@public.gmane.org Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l. Please contact support-FMtJrHiV//lnDLsaKlm4mFaTQe2KTcn/@public.gmane.org for any subscription related questions.