Print Page | Close Window

How can open a browser and capture a response?

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Scripting & Automation
Forum Description: Customize and control AccuTerm using scripts and automation
URL: https://forum.asent.com/forum_posts.asp?TID=2729
Printed Date: March 28 2024 at 1:43pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: How can open a browser and capture a response?
Posted By: rsine
Subject: How can open a browser and capture a response?
Date Posted: November 22 2019 at 10:46am
I'm using Accuterm 2K2 connecting to mvEnterprise and have a need to do the following:

1) open a browser to a given url users will enter some information.

2) capture the url of the page a user is redirected to after submitting information.

I found I can open a web site using code like the following:

EQU STX TO CHAR(2)
EQU CR TO CHAR(13)
EQU EM TO CHAR(25)
EQU ESC TO CHAR(27)
URL = ' https://somewebsite.com" rel="nofollow - https://somewebsite.com '
CRT ESC:STX:'<':URL:CR:


but how do i capture the url the site redirects the user to.  For example, the UPS tracking site  https://www.ups.com/us/en/Home.page" rel="nofollow - https://www.ups.com/us/en/Home.page upon submit will redirect to a url like  https://www.ups.com/track?loc=en_US&tracknum=1Z9V2F610307459170&requester=WT/trackdetails. " rel="nofollow - https://www.ups.com/track?loc=en_US&tracknum=1Z9V2F610307459170&requester=WT/trackdetails.  ; I need to be able to capture that redirected url if possible.

Thank you.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net