I am currently using HTTPClient.SendRequest("POST", string url) to send a REST API Call to a 3rd party application. It works fine unless the total length of the URL is over about 2,000 characters which happens to be IIS's limit. I could break it down into two completely separate SendRequests (some of the data with the first call and some with the second), but I was hoping someone could give me a better way. It's hard to tell from the documentation which is the "old way" of doing things versus the "new way". Any advice would be appreciated. I am using PowerBuilder 2022 (newest version/build). Following is the URL (with a few changes to characters for security reasons). Should I be using a different overload of the SendRequest function? Other ideas?
http://kwiktag.pettitco.com/apiv2/Document/MetaDataUpdate/afjdlwic4-cf56-4fca-a92a-bf8e73856eda?DocId=&barcode=220073507&userName=LRPETTIT&token=7b4e18eb-f482-4d82-b613-023627699dac&exceptedPageCount=&includeEmpty=&scannedPageCount=&newValues=%3CArrayOfXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ECompany%20ID%3C%2FName%3E%3CValue%3E02%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3EVoucher%20Number%3C%2FName%3E%3CValue%3E25176%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3EVendor%20ID%3C%2FName%3E%3CValue%3E1176%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3EVendor%20Name%3C%2FName%3E%3CValue%3ELarry%20R.%20Pettit%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3EVendor%20Invoice%20Number%3C%2FName%3E%3CValue%3E12457809%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3EVendor%20Invoice%20Date%3C%2FName%3E%3CValue%3E12%2F15%2F22%2000:00:00%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3EImage%20Type%3C%2FName%3E%3CValue%3EVendor%20Invoice%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3EVendor%20Invoice%20Total%3C%2FName%3E%3CValue%3E2100.0000%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%201%20Account%3C%2FName%3E%3CValue%3E1300%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%202%20Account%3C%2FName%3E%3CValue%3E5000%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%203%20Account%3C%2FName%3E%3CValue%3E6910%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%204%20Account%3C%2FName%3E%3CValue%3E4997%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%205%20Account%3C%2FName%3E%3CValue%3E7100%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%206%20Account%3C%2FName%3E%3CValue%3E1201%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%201%20Amount%3C%2FName%3E%3CValue%3E100.00%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%202%20Amount%3C%2FName%3E%3CValue%3E200.00%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%203%20Amount%3C%2FName%3E%3CValue%3E300.00%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%204%20Amount%3C%2FName%3E%3CValue%3E400.00%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%205%20Amount%3C%2FName%3E%3CValue%3E500.00%3C%2FValue%3E%3C%2FXFerMetadata%3E%3CXFerMetadata%3E%3CName%3ELine%206%20Amount%3C%2FName%3E%3CValue%3E600.00%3C%2FValue%3E%3C%2FXFerMetadata%3E%3C%2FArrayOfXFerMetadata%3E