HTTP Header Response

Hi All,

I hope you can help me and thanks for your time, I’m trying to get a HTTP header response from a web site followed by a IF activities.
I’m using HTTP Response Activities and in the wizard I’m getting POST response as 200 which is correct, So in the Input Section Endpoint I’ve placed the URL “https://mytest.com.au/({HttpID})” with a HttpID as a variable to use, also output Result is using the variable HttpID.

image

The next step is a IF statement, where the condition is IF HttpID = “200” then continue to the next activity or else email , this always choose the option Else where it sends the email even though the web site is running and returns a 200 http response.

Any idea where I went wrong here, its driving me nuts haha.

@Jchizzel168 - Can you check what is the value of HttpID in the Else block?

Hi @sreenivasm would i need to use the Try Catch activity ? sorry im new to this.

@Jchizzel168 - You can certainly use Try/Catch but that will not help in this case. Can you use the debugger and try to see what is the value of HttpID in the ‘Else’ block?

Ok this make it better to view the entire process!!

So here is the output which I cannot see any errors, but its still defaulting to the else option:

image

the value for HttpID is :

“\r\n\r\n\r\n\r\n <meta charset=”“utf-8"” />\r\n <meta http-equiv="“X-UA-Compatible”" content="“IE=9"” >\r\n\r\n \r\n <link type="“text/css”" rel="“stylesheet”" href=""/Content/style.css"" />\r\n <link type="“text/css”" rel="“stylesheet”" href=""/Content/error-style.css"" />\r\n <link type="“text/css”" rel="“stylesheet”" href=""/Content/jquery.qtip.min.css"" />\r\n \r\n \r\n <script src=""/Scripts/Libraries/jquery.min.js"">\r\n <script src=""/Scripts/Libraries/angular.min.js"">\r\n \r\n\r\n\r\n\r\n <div class="“body-content”" ng-app="“dashboardApp”">\r\n <div class="“pwc-error-wrapper”">\r\n <div class="“pwc-error”">\r\n

An Error Occurred

\r\n

Sorry, it looks like something went wrong when trying to load the page. What are your options?

\r\n
    \r\n
  • Try to reload the page
  • \r\n
  • If the issue persists, please contact AUiT for support
  • \r\n\t\t\t\t\t
  • <a id="“linkHome”" href="“https://testpp.com/”">Return to Homepage
  • \r\n
\r\n \r\n\r\n <div class="“pwc-error2"”>\r\n\t \r\n <div id="“footerlinks”" style="“padding-left:0px;”"> \r\n © Blah. All rights reserved.
\r\n Blah refers to the Australian member firm, and may sometimes refer to the Blah network. Each member firm is a separate legal entity. Please see <a href="“http://www.Test.com/structure”" class="“footer2"” target=""_blank"">www.Test.com/structure for further details \r\n \r\n \r\n\r\n"

@sreenivasm here you go, i didn’t see any Header tag.

Hi Jchizzel,

Your HttpID variable should be in the StatusCode property. It is datatype int32 by the way.

1 Like

Ok this make it better to view the entire process!!

Thanks very much @Emman_Pelayo you were spot on, thanks for your help… will need to improve and spend some more time on these data types and outputs.