Code: Select all
Let>URL=http://........
Let>PostData=field1=value1&field2=value2&.........
HTTPRequest>%URL%,,POST,%PostData%,Result_Variable
Web page normally needs name and password when using browser.
When running macro I get message that I cannot POST.
Here is an excerpt from the Return_Variable:
Code: Select all
function BackToVendorSite()
{
document.frmVendorSite.submit();
}
</script>
</head>
<p>You are not allowed to view this page
<ul><li>Your session may have expired. <a href='/' target='_top'>Please login again.</a>
<FORM id=frmLogin name=frmLogin action=/sql_response_login.asp method=post>
<table class="xxsmallb" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="/images/memberid.gif" WIDTH="70" HEIGHT="15"></td>
<td><input type="text" name="name" size="10" TABINDEX="1"></td>
<td rowspan="2" width="2"><img src="/images/spacer1.gif" WIDTH="1" HEIGHT="1"></td>
<td rowspan="2"><input type="image" src="/images/boxlogin.gif" name="submit" TABINDEX="3" WIDTH="40" HEIGHT="40"></td>
</tr>
<tr>
<td><img src="/images/password.gif" WIDTH="70" HEIGHT="15"></td>
<td><input type="password" name="pw" size="10" TABINDEX="2"></td>
</tr>
<td height="1"><img src="/images/spacer1.gif" WIDTH="1" HEIGHT="1"></td>
</tr>
<INPUT id=strDestination type=hidden value=/PageName/&cTask=BROKER&lMultiPage=True&cSection=SALES name=strDestination>
<INPUT type=hidden name=strForm value=>
</FORM>
</table><br>
<b>Note: </b><i>Session expires after your browser is idle for 20 minutes</i>
<!--<li>You may not be authorised to view this page."-->
<li>Your browser may not have cookies enabled. This site uses cookies for your security. Contact the web site team at 555-1212
</ul>
Session Timeout=20<br> Script Name: /ABC/Forms/FormAggregator.asp<br>
Parameters: job_num=12345&cTask=AGENT&lMultiPage=True&cSection=PULL<br>Form: <br>
</body>
</html>
How to add name and password to HTTP Request command?
It looks like there may be hidden fields for name and pw.
Should name=loginname&pw=password be added to the PostData string?
I have also added name and password into Proxy fields, but that did not work (I didn't expect that it would).
I have run the macro while logged into the page with browser so I know that time expiration is not the factor.
I am too close to the problem now, need some fresh ideas from someone else......
And the answer is.....
