submitting data to web site.
Posted: Fri Nov 08, 2013 7:46 am
Hi all. Progressing nicely with this learning curve. Now playing around with Post command.
Here is the situation:
I have a website with a password entry.
I have managed to fill a text field with the text of the page with this code (i need to access some links on the site to download information) using this code.
This puts the following into the field. It is an auto submit page it seemd. I have never seen this when I login via a browser.
I am understanding more and more how to send information (effectively bypassing the rendering of the page) but I am stumped at present as to what I would do in Livecode to submit this information back to the server to gain access.
Any pointers would be greatly appreciated. Have searched but can not find a post or tutorial which explains it clearly.
Here is the situation:
I have a website with a password entry.
I have managed to fill a text field with the text of the page with this code (i need to access some links on the site to download information) using this code.
Code: Select all
post someData to URL "http://username:password@vppneuapps.volvo.com/png/publlist/Default.aspx?type=7&lang=en"
get the urlResponse
set the text of fld "urlContent" to urlResponse
Code: Select all
<HTML><HEAD><TITLE></TITLE></HEAD><BODY onLoad="document.AUTOSUBMIT.submit();">This page is used to hold your data while you are being authorized for your request.<BR><BR>You will be forwarded to continue the authorization process. If this does not happen automatically, please click the Continue button below.<FORM NAME="AUTOSUBMIT" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded" ACTION="https://vppneuapps.volvo.com/siteminderagent/forms/penta.fcc?TYPE=33554433&REALMOID=06-00018b4c-f482-121a-b6e8-839687c70006&GUID=&SMAUTHREASON=0&METHOD=POST&SMAGENTNAME=-SM-dymceVd%2fbOpoVhchknzOwuyVSNuRugGLPNAHd2U9NOJhlIZ1924gWI4z8NAuPHjZ&TARGET=-SM-HTTP%3a%2f%2fvppneuapps%2evolvo%2ecom%2fpng%2fpubllist%2fDefault%2easpx%3ftype%3d7%26lang%3den"><INPUT TYPE="HIDDEN" NAME="SMPostPreserve" VALUE="bn6R+HObtJ5jbXlYNOeM44h00GYtX+HpFISMYMSYRgix4/MKa8nw90TNEZd4V5qF"><INPUT TYPE="SUBMIT" VALUE="Continue"></FORM></BODY></HTML>
Any pointers would be greatly appreciated. Have searched but can not find a post or tutorial which explains it clearly.