[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unable to get a successful HTTPAPI response
I did not receive any response from anyone. I hope I am sending my
query to the correct email address.
I am checking with our System Administrator, she has tried giving
authority a couple of times but looks like we are missing out on
something. I keep getting the same error.� From a previous archive, I asked her to provide access to the
following-
/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB
�
��������������� ����Data���� --Object
Authorities--
Opt� User������� Authority� Exist� Mgt� Alter� Ref
������������������������������������ ��������������
������*PUBLIC���� *EXCLUDE������������������������
������QSYS������� *RW��������� X���� X���� X���� X
������CM_GRP����� *RX����������������������������� ������IC_GTWYP1�� *RX � � � �� Do we need access to some other object as well? Can someone please
help?� We are getting close to our deadline and I need to get this thing
working.
Any help or direction will be greatly appreciated.
Warm regards,
Shubh
On Tue, May 3, 2016 at 2:21 PM, Shubhadeep Roy
<[1]shubhadeep.roy@xxxxxxxxx> wrote:
Hi,
I am trying to connect to a TIBCO Mashery endpoint to get an Auth Token
with a user name and password provided to me.� �e same request works when I am use Postman application to get the
Auth Token with the same credentials. The Auth Token comes in the
Header of the Post request.
I am pasting below the code and httpdebug log.� am not sure if I am
populating the variable "data" correctly. In Postman, this text is sent
in the Body as can be seen in the embedded image.
�nline image 1 � �de-
P getExtColor � � B � � � � � � � � � Export � � � D getExtColor � � PI � � � � � �30A � � � � � � �� D �ppUserID � � � � � � � � � � 24A � Value � � �� D �ppPwd � � � � � � � � � � � �10A � Value � � �� D �ppAuthToken � � � � � � � � �24A � Value � � �� D �ppVin � � � � � � � � � � � �17A � Value � � �� D �ppAuthUrl � � � � � � � � �1024A � Value � � �� D �ppDescUrl � � � � � � � � �1024A � Value � � �� /Free � � � � � � � � � � � � � � � � � � � � � � � � � �� � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� � �http_debug(*ON : '/tmp/ShubhDebugLog.txt'); � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� � �// Set Authorization � � � � � � � � � � � � � � � � �� � �http_setauth(HTTP_AUTH_BASIC : ppUserID : ppPwd); � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� � �data = '{"grant_type":"client_credentials"}'; � � � � � � �size = %len(%trim(data)); � � � � � � � � � � � � � � � � �rc = http_url_post_raw(ppAuthUrl : %addr(data) : size :
� � � � � � � � � � � � � 1 : %paddr('PARSEINCOMING'));
�� � �http_xproc(HTTP_POINT_PARSE_HEADER : %paddr('READHDR')); � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� � �If rc <> 1; � � � � � � � � � � � � � � � � � � � � � � � � �msg = http_error; � � � � � � � � � � � � � � � � � � � �Else; � � � � � � � � � � � � � � � � � � � � � � � � � � � �...
� �EndIf;
� �Return extColor; � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � /End-Free � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � P getExtColor � � E � P readHdr � � � � B � � � � � � � � � � � � D readHdr � � � � PI � � � � � � � � � � �� D �headerData � � � � � � � � 2048A � const
�* � � � � � � � � � � � � � � � � � � � �� D hdrData � � � � � � � � � � 2048A � � � � �/Free � � � � � � � � � � � � � � � � � �� � � � � � � � � � � � � � � � � � � � � � � � hdrData = headerData; � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �/End-Free � � � � � � � � � � � � � � � �� P readHdr � � � � E � � � � � � � � � � � � Debug Log
�************Beginning of data************** � � � � � � � � � � � � � � � � � � � � � � � � � � � � � HTTPAPI Ver 1.17 released 2006-09-23 � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
� � � � � � � � � � � � � � �� http_setauth(): entered � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� http_persist_open(): entered � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � http_long_ParseURL(): entered � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� https_init(): entered � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� (GSKit) Access to the key database is not allowed. � � � � � � � � � � � � � � � � � � � � � � � � � � ssl_error(6003): (GSKit) Access to the key database is not allowed. � � � � � � � � � � � � � � � � �� SetError() #24: gsk_env_init: (GSKit) Access to the key database is not
allowed. � � � � � � � � � � � -----------------------------------------------------------------------
-------------- � � � � � � � �� Dump of local-side certificate information: � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� -----------------------------------------------------------------------
-------------- � � � � � � � �� (GSKit) An operation which is not valid for the current SSL session
state was attempted. � � � � � � � ssl_error(5): (GSKit) An operation which is not valid for the current
SSL session state was attempted.
(GSKit) An operation which is not valid for the current SSL session
state was attempted. � � � � � � � �************End of Data******************** � � � � � � � � � � � � � � � � � � � � � � � � � � � � �� � � � � � � � � � � � � � � � � � � � � � � � � � � � �� --
Warm regards,
Shubh
All is well. Everything will be OK!!! - Shubh
--
Warm regards,
Shubh
All is well. Everything will be OK!!! - Shubh
References
1. mailto:shubhadeep.roy@xxxxxxxxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------