See the “redirect” HTTP option:

https://www.ibm.com/docs/en/i/7.4?topic=functions-http-get-http-get-blob#rbafzscahttpget__HTTP_options

-----------------------------------------------
Nadir Amra
e-mail: amra@xxxxxxxxxx


From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> on behalf of gio.cot via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
Date: Monday, November 25, 2024 at 1:03 PM
To: midrange-l@xxxxxxxxxxxxxxxxxx <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: gio.cot <gio.cot@xxxxxxxxxxx>
Subject: [EXTERNAL] HTTP_STATUS_CODE":302" with QSYS2.HTTP_GET_VERBOSE
Hi all

If i run this statament

"VALUES
(SYSTOOLS.HTTPGETCLOB('https://zzz.xxxxxx.com/api/v1/mapping/catalog ',
'<httpHeader> <header name="Authorization" value="Basic Y____u"/>
</httpHeader>'));" it works fine.

Instead if i run

"select * from
table(QSYS2.HTTP_GET_VERBOSE('https://zzz.xxxxxx.com/api/v1/mapping/catalog/
', '{"headers": {
"Authorization" : "Basic Y____u", "requireSecure": "true"} } ')) as x ;"

I receive this error "{"HTTP_STATUS_CODE":302,"Date":"Sun, 24 Nov 2024
13:42:34 .."

Any suggestion to solve this problem ?

Thanks in advance

Gio

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l .

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.