/*-----------------------------------------------------------------------------
	Name: A01_MPD_001_Launch.c
	Recorded By: Converted via tool
	Date of recording:
	Flow details:
	Build details:
	Modification History:
-----------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ns_string.h"

void A01_MPD_001_Launch()
{
	
	 
	/*launch*/
    
//		lr_start_transaction("A01_AZ_074_MPD_QuoteCreation");
//
//	lr_start_transaction("A01_AZ_075_MPD_PolicyCreation");
	
	//web_set_user("TENT.TRT.CSAA.PRI\\{P_SSOUserName}","{P_SSOPassword}","e4.pncie.com:443");
	
/*	lr_start_transaction("A01_AZ_001_MPD_LaunchURL");

	//addDynaTraceHeader("NA=A01_AZ_001_MPD_LaunchURL;PC=authentification");
	web_url("authentification", 
		"URL={P_ConstURL}/aaa-external-stub-services-app/authentification?TargetResource={P_URL}:443/aaa-app/do_auth", 
		//"URL={P_ConstURL}/aaa-external-stub-services-app/authentification?originalUrl={P_URL}/aaa-app/do_auth",
		"TargetFrame=", 
		"Resource=0", 
		"RecContentType=text/html", 
		"Referer=", 
		"Snapshot=t1.inf", 
		"Mode=HTML", 
		LAST);

	lr_end_transaction("A01_AZ_001_MPD_LaunchURL", LR_AUTO);*/


ns_start_transaction("A01_AZ_001_MPD_LaunchURL");							   
					   
ns_start_transaction("A01_AZ_001_MPD_LaunchURL_01");

	//addDynaTraceHeader("NA=A01_AZ_001_MPD_LaunchURL;PC=aaa-app");

		ns_web_url("aaa_app",
		"URL={P_URL}/aaa-app",  
		"HEADER=Content-Type: text/html", 
		"Snapshot=t1.inf", 
		"HEADER=Upgrade-Insecure-Requests:1",
       	//"HEADER=X-dynaTrace: NA=QS01_CA_Home;ID=256;VU=0;PC=index",
          "HEADER=Sec-Fetch-User:?1",
          "HEADER=Sec-Fetch-Site:none",
          "HEADER=Sec-Fetch-Mode:navigate",
          "HEADER=Accept-Language:en-US,en;q=0.9",
//          "REDIRECT=YES",
//          "LOCATION=/aaa-app/",
          "PreSnapshot=webpage_1611943003238.png",
          "Snapshot=webpage_1611943006004.png",
        INLINE_URLS,
            //"URL={P_URL}/aaa-app/", "HEADER=Upgrade-Insecure-Requests:1", "HEADER=Sec-Fetch-User:?1", "HEADER=Sec-Fetch-Site:none", "HEADER=Sec-Fetch-Mode:navigate", "HEADER=Accept-Language:en-US,en;q=0.9", END_INLINE
   );
	
	ns_end_transaction("A01_AZ_001_MPD_LaunchURL_01", NS_AUTO_STATUS);

		
	ns_start_transaction("A01_AZ_001_MPD_LaunchURL_02");
			   
	//addDynaTraceHeader("NA=A01_AZ_001_MPD_LaunchURL;PC=flow");
//	ns_web_url("Index1_1",
//        "URL={P_URL}/aaa-app/rfRes/datatable.ecss.xhtml?db=eAHjW!XqPQAE!QKS&ln=org.richfaces",
//        "HEADER=Sec-Fetch-Site:same-origin",
//        //"HEADER=X-dynaTrace: NA=QS01_CA_Home;ID=256;VU=0;PC=Index1_1",
//        "HEADER=Sec-Fetch-Mode:no-cors",
//        "HEADER=Accept-Language:en-US,en;q=0.9",
//        "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID",
//        INLINE_URLS,
//            "URL={P_URL}/aaa-app/rfRes/datascroller.ecss.xhtml?db=eAHjW!XqPQAE!QKS&ln=org.richfaces", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID",             END_INLINE,
//            "URL={P_URL}/aaa-app/rfRes/popupPanel.ecss.xhtml?db=eAHjW!XqPQAE!QKS&ln=org.richfaces", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/rfRes/calendar.ecss.xhtml?db=eAHjW!XqPQAE!QKS&ln=org.richfaces", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/style.scss?crc=f969d6c4a5bbac9b274618aadcfa95e06ca04afd:blue", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/css-plain/index-default.css?crc=8df6e3073927a0f7952b145dff384c5816546cb8", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/css-plain/index-custom.css?crc=f50929fa5198a781ee02f403103d4d2fde2107db", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/theme.scss?ln=scss/theme/blue&crc=4d8a2dbea4209567e9a72fd08f56ffee7da8b381:blue", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/jsf.js?ln=javax.faces&crc=cf18b5c6bee824112dc894dd35debcb5c46528d7", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/jquery/jquery.js?ln=primefaces&crc=abfa24db127591cd2defbf6fd6b8e097da7f6af6", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/richfaces.js?crc=c0e3450c92a522ed0569ebcadc3c1c3e79e19b92", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/richfaces-base-component.js?crc=16b7e47381dcb31e65522feae29565e05ebf694a", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/datatable.js?ln=org.richfaces&crc=4766f61371b64ae249b7f03a5b8ca332a746016b", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/richfaces-queue.js?crc=b950ade239cb2d05fea1f27b7b1c6708175eed45", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/richfaces-event.js?crc=e51f0836164018bcd91651a6c4a5b3d1679e5439", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/datascroller.js?ln=org.richfaces&crc=e3ed7fa32cdddd082269e6f0bd5aba5f1f297da3", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/popupPanel.js?ln=org.richfaces&crc=75e71ab80660a389e1c2f56bd1e4d8eb0f1d0f88", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/popupPanelBorders.js?ln=org.richfaces&crc=2c5a827616173baa4a426065b1426e5079fb3255", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/popupPanelSizer.js?ln=org.richfaces&crc=cd63dd984684fc4f39f327078449f267862fc2ff", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/jquery.position.js?crc=0c6d2d0c395a50e53f9d3eaf590514fe2a2529f1", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/json-dom.js?ln=org.richfaces&crc=ecbe16df0e1113de146a2827ed47e124181066d5", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/jquery/jquery-plugins.js?ln=primefaces&crc=d5625b9b0f27fdd73b0ada8363fa1f38a7738dae", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/JQuerySpinBtn.js?ln=org.richfaces&crc=87b46721fda2a0cd09ebc102bebd26a2f7a23133", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/calendar-utils.js?ln=org.richfaces&crc=77a3151e5b605a5d047bd0c5fed5a6898848a9de", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/calendar.js?ln=org.richfaces&crc=bfff6614e0b90d2acdb09a97e0d1b583ab37dce3", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/togglePanel.js?ln=org.richfaces&crc=7f14f3eb908079d77528a87698e7fd96ad4e9eb1", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/togglePanelItem.js?ln=org.richfaces&crc=64c0fdeea19be7d5e1feaab8cd9caa2f2709e8c0", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/collapsiblePanel.js?ln=org.richfaces&crc=78078f4da3df99435bb181f4b394cc570031a160", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/collapsiblePanelItem.js?ln=org.richfaces&crc=6b3a767aed1669fd539deace4acdbb3c2ad31d44", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/eis-scripts.min.js?crc=d2e883fc5d085da2040355a25a8d78f390e80319", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID", END_INLINE,
//            "URL={P_URL}/aaa-app/javax.faces.resource/font/fontello.woff?31336992", "HEADER=Origin:{P_URL}", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:cors", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID;window.name", END_INLINE,
//            "URL={P_URL}/aaa-app/flow?_flowId=ipb-entry-flow", "HEADER=Upgrade-Insecure-Requests:1", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:navigate", "HEADER=Accept-Language:en-US,en;q=0.9", "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID;window.name", END_INLINE
   
	ns_web_url("Index1_1",
        "URL={P_URL}/aaa-app/flow?_flowId=ipb-entry-flow",
        "HEADER=Sec-Fetch-Site:same-origin",
        //"HEADER=X-dynaTrace: NA=QS01_CA_Home;ID=256;VU=0;PC=Index1_1",
        "HEADER=Sec-Fetch-Mode:no-cors",
        "HEADER=Accept-Language:en-US,en;q=0.9",
        "HEADER=Referer: {P_URL}/aaa-app/", 
        "COOKIE=oam.Flash.RENDERMAP.TOKEN;JSESSIONID",
        INLINE_URLS,
	);
	
	
	ns_end_transaction("A01_AZ_001_MPD_LaunchURL_02", NS_AUTO_STATUS);	
		
//ns_start_transaction("A01_AZ_001_MPD_LaunchURL_03");

ns_start_transaction("A01_AZ_001_MPD_LaunchURL_03"); 

  //addDynaTraceHeader("NA=A01_AZ_002_MPD_SignIn;PC=SAML_2");
 	ns_web_url ("SAML",
       "URL={P_ConstURL}/aaa-external-stub-services-app/authentification/SAML",
        //"URL={P_URL}/aaa-external-stub-services-app/authentification/SAML",
        "METHOD=POST",
        "HEADER=Content-Length:4292",
       // "HEADER=X-dynaTrace: NA=A01_AZ_002_MPD_SignIn_01;ID=256;VU=0;PC=SAML",
        "HEADER=Cache-Control:max-age=0",
        "HEADER=Upgrade-Insecure-Requests:1",
        "HEADER=Origin:{P_URL}",
        "HEADER=Content-Type:application/x-www-form-urlencoded",
        "HEADER=Sec-Fetch-Site:cross-site",
        "HEADER=Sec-Fetch-Mode:navigate",
        "HEADER=Accept-Language:en-US,en;q=0.9",
        "PreSnapshot=webpage_1611943007318.png",
        "Snapshot=webpage_1611943007644.png",
        BODY_BEGIN,
        "SAMLRequest={SAMLRequest}",
        BODY_END,
        INLINE_URLS,
           // "URL={P_ConstURL}/favicon.ico", "HEADER=Sec-Fetch-Site:same-origin", "HEADER=Sec-Fetch-Mode:no-cors", "HEADER=Accept-Language:en-US,en;q=0.9", END_INLINE
    );

    ns_end_transaction("A01_AZ_001_MPD_LaunchURL_03",NS_AUTO_STATUS);

//    ns_end_transaction("A01_AZ_001_MPD_LaunchURL_03", NS_AUTO_STATUS);
 
	ns_end_transaction("A01_AZ_001_MPD_LaunchURL", NS_AUTO_STATUS);
		
	
	//return 0;
}
