× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I've been struggling with connecting to an AWS service to get temporary credentials.
https://sts.amazonaws.com

I had the request matching exactly to a working Postman request (postman had a few extra headers), but was getting the error below.

On a whim, I tried using GETURI and it worked!!
What the heck?


(http_debug log)

GET /?Version=2011-06-15&Action=AssumeRole&RoleSessionName=postmanSpApi&RoleArn=arn:aws:iam::211290147119:role/SellingPartnerRole HTTP/1.1
Host: sts.amazonaws.com
User-Agent: http-api/1.43

2022-07-21-09.24.57.090915: CommSSL_BlockWrite(): gsk_secure_soc_write socket fd=2, flags=00000084, blocking=0
2022-07-21-09.24.57.091148: CommSSL_BlockWrite(): gsk_secure_soc_write rc=0, len=643
Authorization: AWS4-HMAC-SHA256 Credential=AKIATCMO7ZEXQCKCSYRZ/20220721/us-east-1/sts/aws4_request, SignedHeaders=host;x-amz-access-token;x-amz-date, Signature=859df0dea8d684456496978876205af10fe6c33ef47156d23d1f15a48000e517
x-amz-access-token: Atza|IwEBIB_DELETED_FROM_HERE
X-Amz-Date: 20220721T123240Z
Accept: */*

2022-07-21-09.24.57.091536: CommSSL_BlockWrite(): gsk_secure_soc_write socket fd=2, flags=00000084, blocking=0
2022-07-21-09.24.57.091739: CommSSL_BlockWrite(): gsk_secure_soc_write rc=0, len=2
2022-07-21-09.24.57.092005: recvresp(): entered
2022-07-21-09.24.57.092207: recvresp: reading response header, space left=32767
2022-07-21-09.25.20.215020: SetError() #44: CommTCP_read: Socket has been shut down.
2022-07-21-09.25.20.215303: recvresp(): end with err
2022-07-21-09.25.20.215696: http_close(): entered

[Logo]<https://www.totalbizfulfillment.com/> Greg Wilburn
Director of IT
301.895.3792 ext. 1231
301.895.3895 direct
gwilburn@xxxxxxxxxxxxxxxxxxxxxxx<mailto:gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>
1 Corporate Dr
Grantsville, MD 21536
www.totalbizfulfillment.com<http://www.totalbizfulfillment.com>

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.