PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Capture Cookie from external URL Synchronous

edited Sep 21, 2017 2:03PM in PeopleTools and Lifecycle Management - PSFT (MOSC) 3 commentsAnswered

Need to call external URL (http://myserver.somwhere.com/share/?key=xyz)  and return cookie (token) from external site.

The following code below returns no cookie and no errors. It returns body but no cookies.  Please advise.  Thank you, Nick

Environment: PT 8.49.21

Local Message &req, &res;

&url = GetURL(URL.BASIC_WEB_AUTH);

&req = CreateMessage(Message.IB_GENERIC);

&req.IBInfo.IBConnectorInfo.ConnectorClassName = "HttpTargetConnector";

&BasicAuthorizationEncrypted = GetURL(URL.BASIC_WEB_AUTH);

&BasicAuthorizationDecrypted = Decrypt("", &BasicAuthorizationEncrypted);

&b = &req.IBInfo.IBConnectorInfo.AddConnectorProperties("URL", &url, %HttpProperty);

&b = &req.IBInfo.IBConnectorInfo.AddConnectorProperties("Method", "GET", %HttpProperty);

&b = &req.IBInfo.IBConnectorInfo.AddConnectorProperties("Content-Type", "text/html; charset=utf-8", %Header);

&b = &req.IBInfo.IBConnectorInfo.AddConnectorProperties("Authorization", &BasicAuthorizationDecrypted, %Header);

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center