Retrieving information from a website


Is it possible to retrieve data from a website through ignition? And then the output will be shown on the table


Yes, it is possible by using our system function called You can find more information and examples here: … ttpget.htm

Ok, so does all website provides their information? I mean do they allow it to retrieve information on the scripts? I’m trying to retrieve information from the website sentry track.

I looked at the example in the manual on the weather forecast on yahoo weather and i couldn’t find something similar to the reference they used to retrieve the information i need in sentry track.

It depends completely on the website. You are going to have to use the function and print out the results to figure out what they are pushing. Try: source ="") print source And check out the console to see what it gives you.

Yea that’s what i did, and i didn’t see anything i could use to pull out the information on the website

Nothing at all? Was it blank? If so, you might have the wrong address. What exactly are you looking for? What did it print out?

i don’t know if i didn’t see it or it really didn’t give the information i need.
i need to get the value for the flow, level and pressure of a well.

this is was the output i got



	<title>Sentry Track - Login</title>

	<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">

	<meta content="C#" name="CODE_LANGUAGE">

	<meta content="JavaScript" name="vs_defaultClientScript">

	<meta content="" name="vs_targetSchema">

	<LINK href="Styles/STBaseStyle.css" type="text/css" rel="stylesheet">


<body leftMargin="2" topMargin="2">

	<form name="Form1" method="post" action="STLogin.aspx" id="Form1">
<tr vAlign="top" height="40">

	<td class="STPageHeader">

		<table cellSpacing="0" cellPadding="0" width="100%" border="0" style="TABLE-LAYOUT: fixed; BORDER-COLLAPSE: collapse">

			<tr vAlign="top" align="left" width="100%">

				<td width="150"><IMG height="30" alt="Sentry Track Host Web" src="Images/STSmlLogo.gif" width="150" align="bottom"></td>

				<td vAlign="middle" align="left">&nbsp;&nbsp;&nbsp;

					<DIV id="STPageHeaderControl__TitleLabel" style="DISPLAY: inline; FONT-SIZE: 18pt; WIDTH: 300px; HEIGHT: 100%" ms_positioning="FlowLayout">User Login</DIV>


				<td vAlign="top" align="right"><span id="STPageHeaderControl__LoggedInUser"><font size="1"></font></span></td>







	<td width="778" bgColor="silver" height="2"><IMG height="2" src="images/STEmpty.gif" width="778"></td>


<tr vAlign="top" id="AppArea">


		<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">


				<td class="STDetail" style="PADDING-RIGHT: 2px;PADDING-LEFT: 2px;PADDING-BOTTOM: 2px;PADDING-TOP: 2px">

		<div style="OVERFLOW-Y: auto; WIDTH: 100%; HEIGHT: 100%">



				<table id="LoginTable" cellspacing="10" cellpadding="0" width="450" border="0" align="center">


	<TD align="right" class="RqdFieldLabel" width="150">Login ID:</TD>

	<TD align="left" width="150">

							<input name="LoginText" type="text" id="LoginText" tabindex="1" class="RqdField" /></TD>




	<TD align="right" class="RqdFieldLabel">Password:</TD>

	<TD align="left">

							<input name="PasswordText" type="password" id="PasswordText" tabindex="2" class="RqdField" /></TD>





	<TD align="right"></TD>

	<TD align="left">

							<input type="submit" name="SubmitButton" value="Submit" onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " language="javascript" id="SubmitButton" tabindex="3" /></TD>




	<td colspan="2">

							<span id="ErrorLabel"><font color="#C00000"></font></span></td>




	<script language=javascript>document.forms.Form1.LoginText.focus();</script>


[b]Login ID:[/b]   [b]Password:[/b]  

It looks like it’s asking you for a username and a password.

i’m already logged in to the site on the browser.

so i have to login to it to through ignition to be able to get the data i need? how do i do that? i have no knowledge using regular expression like the one on the example for httpget :neutral_face:

The page is requiring an authenticated session, and httpGet() is just not advanced enough for that. You are going to have to go into the java api and figure out how to make the proper connection. You can find more information on the java website or through something like stackoverflow.