url and parameters
joedoherty
Posts: 6
Hi,
Can someone tell me if there is anything wrong with the following string?
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.traffic&view=view.categories")
When running a project it seems that it stops when it gets to this line.
I can't find anything that tells me why this has failed. When I copy to string to my browser it works fine.
Thanks,
Joe
Can someone tell me if there is anything wrong with the following string?
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.traffic&view=view.categories")
When running a project it seems that it stops when it gets to this line.
I can't find anything that tells me why this has failed. When I copy to string to my browser it works fine.
Thanks,
Joe
This discussion has been closed.
Comments
There doesn't seem to be anything at all wrong with the URL format. Can you try logging the result of this query to the ANTS Trace Log using the Me.LogToFile Method?
For example: This will put the HTTP status of the request into the c:\program files\ants load\antstracelog.txt file.
Please let us know what you find out.
I receive many of the following:
VirtualClient 2 06/11/2005 16:16:08
Server Returned HTTP/200: OK
It seems thaqt my script stops running after the statement as when I see no other entry in the logs from the log write at the end of the script.
I have included the script.
Imports System
Imports RedGate.Ants.Engine
Public Class BrowserClient1
Inherits Control.VirtualClient
Protected Overrides Sub Run()
Dim username As String = StateInformation.Get("username")
Dim intSleep As Integer = 500
RandomSleep(1000, 10000)
WebClient.HttpRequest.ProtocolVersion = "HTTP/1.1"
BeginPage("Logon Screen")
WebClient.HttpRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322)"
WebClient.HttpRequest.Headers.Set("UACPU", "x86")
WebClient.GET("http://192.168.1.49/orange")
WebClient.GET("http://192.168.1.49/orange/")
WebClient.GET("http://192.168.1.49/orange/ssl/userlogin.asp")
WebClient.GET("http://192.168.1.49/orange/styles/styles.css")
WebClient.GET("http://192.168.1.49/orange/images/login_top.gif")
WebClient.GET("http://192.168.1.49/orange/Scripts/javascript.js")
WebClient.GET("http://192.168.1.49/orange/images/logo.gif")
WebClient.GET("http://192.168.1.49/orange/images/head_hello.gif")
WebClient.GET("http://192.168.1.49/orange/images/username.gif")
WebClient.GET("http://192.168.1.49/orange/images/clear.gif")
WebClient.GET("http://192.168.1.49/orange/images/password.gif")
WebClient.GET("http://192.168.1.49/orange/buttons/btn_go.gif")
EndPage("Logon Screen")
Sleep(intSleep)
BeginPage("Dashboard")
WebClient.HttpRequest.Pragma = "no-cache"
WebClient.HttpRequest.ContentType = "application/x-www-form-urlencoded"
WebClient.HttpRequest.AddPostData("username", username, False)
WebClient.HttpRequest.AddPostData("password", "stress", False)
WebClient.Post("http://192.168.1.49/orange/ssl/userlogin.asp")
WebClient.HttpRequest.ContentType = Nothing
WebClient.Get("http://192.168.1.49/orange/ssl/infopage.asp?lcode=0")
WebClient.Get("http://192.168.1.49/orange/ssl/UserLogin.asp?lcode=0")
WebClient.Get("http://192.168.1.49/orange/navstart.asp?PasswordChange=1")
WebClient.HttpRequest.Pragma = Nothing
WebClient.Get("http://192.168.1.49/orange/navtopnav.asp?sec=analysis")
WebClient.Get("http://192.168.1.49/orange/navleftnav.asp?activeparent=0")
WebClient.Get("http://192.168.1.49/orange/blank.htm")
WebClient.Get("http://192.168.1.49/orange/styles/menu.css")
WebClient.Get("http://192.168.1.49/orange/images/dots_v.gif")
WebClient.Get("http://192.168.1.49/orange/images/folder-closed.gif")
WebClient.Get("http://192.168.1.49/orange/images/node.gif")
WebClient.Get("http://192.168.1.49/orange/images/plus.gif")
WebClient.Get("http://192.168.1.49/orange/images/lastnode.gif")
WebClient.Get("http://192.168.1.49/orange/images/btn_signout.gif")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/logo.gif")
WebClient.Get("http://192.168.1.49/orange/images/head_orange_billing_manager.gif")
WebClient.Get("http://192.168.1.49/orange/l3_dashboard.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/images/btn_Search.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/1px_cccccc.gif")
WebClient.Get("http://192.168.1.49/orange/images/moveup.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test1.gif")
WebClient.Get("http://192.168.1.49/orange/images/bulletalert.gif")
WebClient.Get("http://192.168.1.49/orange/images/info.gif")
WebClient.Get("http://192.168.1.49/orange/images/movedown.gif")
WebClient.Get("http://192.168.1.49/orange/images/minus.gif")
EndPage("Dashboard")
Sleep(intSleep)
BeginPage("Report - call destination")
' WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.traffic&view=view.categories")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.traffic&view=view.categories")
Me.LogToFile("Server Returned HTTP/" & WebClient.HttpResponse.Status.ToString & ": " & WebClient.HttpResponse.StatusDescription)
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
**** note from sender - script seems to stop here****
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-mid-gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-finish.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_gray.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test4.gif")
EndPage("Report call destination")
Sleep(intSleep)
BeginPage("Report - call cost")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.value&view=view.categories&sfld=CAT&sord=ASC")
Me.LogToFile("Server Returned HTTP/" & WebClient.HttpResponse.Status.ToString & ": " & WebClient.HttpResponse.StatusDescription)
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sortup.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_gray.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test2.gif")
EndPage("Report - call cost")
Sleep(intSleep)
BeginPage("Report - call duration")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.duration&view=view.categories&sfld=CAT&sord=ASC")
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sortup.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_gray.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test3.gif")
EndPage("Report - call duration")
Sleep(intSleep)
BeginPage("Report - peak/off-peak")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.peak&view=view.categories&sfld=VOL&sord=DESC")
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-mid-gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-finish.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_gray.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test5.gif")
EndPage("Report - peak/off-peak")
Sleep(intSleep)
BeginPage("Report - daily use")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.distdate&view=view.categories&sfld=CAT&sord=ASC")
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sortup.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_on.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_on.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test6.gif")
EndPage("Report - daily use")
Sleep(intSleep)
BeginPage("Report - hourly usage")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.disttime&view=view.categories&sfld=CAT&sord=ASC")
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/images/peeps-over.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill_over.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill_over.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps-over.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps-over.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
EndPage("Report - hourly usage")
Sleep(intSleep)
BeginPage("Report - cost allocation")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.charges&view=view.groups&sfld=CHGTOT&sord=DESC")
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-mid-gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-finish.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_gray.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test8.gif")
EndPage("Report - cost allocation")
Sleep(intSleep)
BeginPage("Report - call allocation")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.total&view=view.groups")
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-mid-gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-finish.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_gray.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test9.gif")
EndPage("Report - call allocation")
Sleep(intSleep)
BeginPage("Report - call class")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.trans&view=view.categories")
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-mid-gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-finish.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_gray.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test10.gif")
EndPage("Report - call class")
Sleep(intSleep)
BeginPage("Report - internal calls")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.internal&view=view.nodes&sfld=VOL&sord=DESC")
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-mid-gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-finish.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_gray.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test11.gif")
EndPage("Report - internal calls")
Sleep(intSleep)
BeginPage("Report - phone summary")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.instance.charges&view=view.instances&sfld=TOTALCOSTS&sord=DESC")
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-mid-gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-finish.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_on.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_on.gif")
EndPage("Report - phone summary")
Sleep(intSleep)
BeginPage("Report - VAT exempt call cost")
WebClient.Get("http://192.168.1.49/orange/l3_report.asp?data=data.l3.orange.vat.calls&view=view.groups&sfld=VATEXEMPT&sord=DESC")
GetRecursive(WebClient, "http://192.168.1.49/orange/l3_report.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-charting.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/orange/images/drill.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-start.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-mid-gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/bar-finish.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/plus.gif")
EndPage("Report - VAT exempt call cost")
Sleep(intSleep)
BeginPage("Help")
WebClient.Get("http://192.168.1.49/orange/helppopup.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/images/logo.gif")
WebClient.Get("http://192.168.1.49/orange/images/helptitle.gif")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/arrowsnext.gif")
EndPage("Help")
Sleep(15000)
BeginPage("Dashboard2")
WebClient.Get("http://192.168.1.49/orange/l3_dashboard.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/images/btn_Search.gif")
WebClient.Get("http://192.168.1.49/orange/images/1px_cccccc.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/test12.gif")
WebClient.Get("http://192.168.1.49/orange/images/bulletalert.gif")
WebClient.Get("http://192.168.1.49/orange/images/moveup.gif")
WebClient.Get("http://192.168.1.49/orange/images/info.gif")
WebClient.Get("http://192.168.1.49/orange/images/movedown.gif")
EndPage("Dashboard2")
Sleep(intSleep)
BeginPage("Watchpoints")
WebClient.Get("http://192.168.1.49/orange/l3_user_watchpoints.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/images/1px_cccccc.gif")
WebClient.Get("http://192.168.1.49/orange/images/btn_go.gif")
WebClient.Get("http://192.168.1.49/orange/images/btn_go-over.gif")
WebClient.HttpRequest.Pragma = "no-cache"
WebClient.HttpRequest.ContentType = "application/x-www-form-urlencoded"
WebClient.HttpRequest.AddPostData("wp_dial1", "321", False)
WebClient.HttpRequest.AddPostData("wp_dial2", "", False)
WebClient.HttpRequest.AddPostData("wp_dial3", "", False)
WebClient.HttpRequest.AddPostData("wp_dial4", "", False)
WebClient.HttpRequest.AddPostData("wp_dial5", "", False)
WebClient.HttpRequest.AddPostData("wp_hand1", "321", False)
WebClient.HttpRequest.AddPostData("wp_hand2", "", False)
WebClient.HttpRequest.AddPostData("wp_hand3", "", False)
WebClient.HttpRequest.AddPostData("wp_hand4", "", False)
WebClient.HttpRequest.AddPostData("wp_hand5", "", False)
WebClient.HttpRequest.AddPostData("submit1.x", "7", False)
WebClient.HttpRequest.AddPostData("submit1.y", "6", False)
WebClient.Post("http://192.168.1.49/orange/l3_user_watchpoints.asp")
WebClient.HttpRequest.ContentType = Nothing
EndPage("Watchpoints")
Sleep(intSleep)
BeginPage("Dashboard3")
WebClient.Get("http://192.168.1.49/orange/l3_dashboard.asp")
WebClient.HttpRequest.Pragma = Nothing
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/images/btn_Search.gif")
WebClient.Get("http://192.168.1.49/orange/images/peeps.gif")
WebClient.Get("http://192.168.1.49/cfxtemp/CFT1019_1851223DC.gif")
WebClient.Get("http://192.168.1.49/orange/images/bulletalert.gif")
WebClient.Get("http://192.168.1.49/orange/images/moveup.gif")
WebClient.Get("http://192.168.1.49/orange/images/info.gif")
WebClient.Get("http://192.168.1.49/orange/images/movedown.gif")
EndPage("Dashboard3")
Sleep(intSleep)
BeginPage("Search")
WebClient.Get("http://192.168.1.49/orange/startsearch.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/alert.gif")
WebClient.Get("http://192.168.1.49/orange/images/btnprint.gif")
WebClient.Get("http://192.168.1.49/orange/Search1.asp")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/arrowsnext.gif")
WebClient.HttpRequest.Pragma = "no-cache"
WebClient.HttpRequest.ContentType = "application/x-www-form-urlencoded"
WebClient.HttpRequest.AddPostData("hidSelection", "All", False)
WebClient.HttpRequest.AddPostData("hidCallDetailsCriteria", "", False)
WebClient.HttpRequest.AddPostData("hidWhoCriteria", "", False)
WebClient.HttpRequest.AddPostData("hidSortOrderCriteria", "", False)
WebClient.HttpRequest.AddPostData("hidDirection", "next", False)
WebClient.HttpRequest.AddPostData("hidCallsPrevious", "", False)
WebClient.HttpRequest.AddPostData("hidPage", "Search1.asp", False)
WebClient.HttpRequest.AddPostData("hidfid", "0", False)
WebClient.HttpRequest.AddPostData("RadioWho", "All", False)
WebClient.Post("http://192.168.1.49/orange/SearchCallDetails.asp")
WebClient.HttpRequest.Pragma = Nothing
WebClient.HttpRequest.ContentType = Nothing
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-utils.js")
WebClient.Get("http://192.168.1.49/orange/common/common-popup-calender.htm")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/arrowsprevious.gif")
WebClient.Get("http://192.168.1.49/orange/images/arrowsnext.gif")
WebClient.HttpRequest.Pragma = "no-cache"
WebClient.HttpRequest.ContentType = "application/x-www-form-urlencoded"
WebClient.HttpRequest.AddPostData("hidDirection", "Next", False)
WebClient.HttpRequest.AddPostData("hidPage", "SearchCallDetails.asp", False)
WebClient.HttpRequest.AddPostData("hidPrevious", "Search1.asp", False)
WebClient.HttpRequest.AddPostData("hidWhoCriteria", "", False)
WebClient.HttpRequest.AddPostData("hidSortOrderCriteria", "", False)
WebClient.HttpRequest.AddPostData("hidSelection", "All", False)
WebClient.HttpRequest.AddPostData("hidCallsPrevious", "Search1.asp", False)
WebClient.HttpRequest.AddPostData("hidCallDetailsCriteria", "", False)
WebClient.HttpRequest.AddPostData("hidfid", "0", False)
WebClient.HttpRequest.AddPostData("txtDigits", "0797", False)
WebClient.HttpRequest.AddPostData("blnStart", "on", False)
WebClient.HttpRequest.AddPostData("txtAreaCode", "", False)
WebClient.HttpRequest.AddPostData("txtDialledLocation", "", False)
WebClient.HttpRequest.AddPostData("txtDateFrom", "", False)
WebClient.HttpRequest.AddPostData("txtDateTo", "", False)
WebClient.HttpRequest.AddPostData("cboCallTimeFromHour", "00", False)
WebClient.HttpRequest.AddPostData("cboCallTimeFromMin", "00", False)
WebClient.HttpRequest.AddPostData("cboCallTimeToHour", "00", False)
WebClient.HttpRequest.AddPostData("cboCallTimeToMin", "00", False)
WebClient.HttpRequest.AddPostData("txtCallSpendFrom", "", False)
WebClient.HttpRequest.AddPostData("txtCallSpendTo", "", False)
WebClient.HttpRequest.AddPostData("txtFromMins", "", False)
WebClient.HttpRequest.AddPostData("txtFromSecs", "", False)
WebClient.HttpRequest.AddPostData("txtToMins", "", False)
WebClient.HttpRequest.AddPostData("txtToSecs", "", False)
WebClient.HttpRequest.AddPostData("cboCallCategories", "0", False)
WebClient.HttpRequest.AddPostData("cboTransTypes", "0", False)
WebClient.HttpRequest.AddPostData("cboRoamedStatus", "0", False)
WebClient.HttpRequest.AddPostData("cboPeakRate", "0", False)
WebClient.HttpRequest.AddPostData("cboTax", "0", False)
WebClient.Post("http://192.168.1.49/orange/SearchSortOrder.asp")
WebClient.HttpRequest.Pragma = Nothing
WebClient.HttpRequest.ContentType = Nothing
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/arrowsprevious.gif")
WebClient.Get("http://192.168.1.49/orange/images/arrowsnext.gif")
WebClient.HttpRequest.Pragma = "no-cache"
WebClient.HttpRequest.ContentType = "application/x-www-form-urlencoded"
WebClient.HttpRequest.AddPostData("hidDirection", "Next", False)
WebClient.HttpRequest.AddPostData("hidPage", "SearchSortOrder.asp", False)
WebClient.HttpRequest.AddPostData("hidPrevious", "Search1.asp", False)
WebClient.HttpRequest.AddPostData("hidWhoCriteria", "", False)
WebClient.HttpRequest.AddPostData("hidSortOrderCriteria", "", False)
WebClient.HttpRequest.AddPostData("hidSelection", "All", False)
WebClient.HttpRequest.AddPostData("hidCallsPrevious", "Search1.asp", False)
WebClient.HttpRequest.AddPostData("hidCallDetailsCriteria", "txtDialledDigits%3D0797%7C%7CblnStartsWith%3D1", False)
WebClient.HttpRequest.AddPostData("hidfid", "0", False)
WebClient.HttpRequest.AddPostData("cboSort1", "0%7C%7Cdatetime", False)
WebClient.HttpRequest.AddPostData("RadioSort1", "0", False)
WebClient.Post("http://192.168.1.49/orange/SearchSaveInfo.asp")
WebClient.HttpRequest.Pragma = Nothing
WebClient.HttpRequest.ContentType = Nothing
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-utils.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/btn_save.gif")
WebClient.Get("http://192.168.1.49/orange/images/btnCancel.gif")
WebClient.Get("http://192.168.1.49/orange/images/arrowsprevious.gif")
WebClient.HttpRequest.Pragma = "no-cache"
WebClient.HttpRequest.ContentType = "application/x-www-form-urlencoded"
WebClient.HttpRequest.AddPostData("hidDirection", "default", False)
WebClient.HttpRequest.AddPostData("hidPage", "SearchSaveInfo.asp", False)
WebClient.HttpRequest.AddPostData("hidPrevious", "Search1.asp", False)
WebClient.HttpRequest.AddPostData("hidWhoCriteria", "", False)
WebClient.HttpRequest.AddPostData("hidSortOrderCriteria", "order1%3D0%2Cdir%3D0%2Cdesc%3Ddatetime", False)
WebClient.HttpRequest.AddPostData("hidSelection", "All", False)
WebClient.HttpRequest.AddPostData("hidCallsPrevious", "Search1.asp", False)
WebClient.HttpRequest.AddPostData("hidCallDetailsCriteria", "txtDialledDigits%3D0797%7C%7CblnStartsWith%3D1", False)
WebClient.HttpRequest.AddPostData("hidfid", "0", False)
WebClient.HttpRequest.AddPostData("txtReportname", "", False)
WebClient.Post("http://192.168.1.49/orange/SearchProcessSave.asp?Action=Run")
WebClient.HttpRequest.ContentType = Nothing
WebClient.Get("http://192.168.1.49/orange/l3_callsearchsummary.asp?fid=2360")
WebClient.HttpRequest.Pragma = Nothing
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/btnprint.gif")
WebClient.Get("http://192.168.1.49/orange/repsearchl3.asp?fid=2360&totVol=71&totCost=18.211&totDur=02:34:52&avgDur=00:02:10&avgCost=0.2564")
WebClient.Get("http://192.168.1.49/orange/styles/styles.css")
WebClient.Get("http://192.168.1.49/orange/common/common-data-page-nav.js")
WebClient.Get("http://192.168.1.49/orange/images/clear.gif")
WebClient.Get("http://192.168.1.49/orange/images/sort.gif")
WebClient.Get("http://192.168.1.49/orange/images/first_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/previous_gray.gif")
WebClient.Get("http://192.168.1.49/orange/images/next_on.gif")
WebClient.Get("http://192.168.1.49/orange/images/last_on.gif")
WebClient.Get("http://192.168.1.49/orange/images/btnprint.gif")
WebClient.Get("http://192.168.1.49/orange/images/btn_signout-over.gif")
EndPage("Search")
Sleep(intSleep)
BeginPage("Logoff")
WebClient.GET("http://192.168.1.49/orange/ssl/userlogin.asp?cmd=logoff")
WebClient.GET("http://192.168.1.49/orange/styles/styles.css")
WebClient.GET("http://192.168.1.49/orange/images/login_top.gif")
WebClient.GET("http://192.168.1.49/orange/Scripts/javascript.js")
WebClient.GET("http://192.168.1.49/orange/images/logo.gif")
WebClient.GET("http://192.168.1.49/orange/images/head_hello.gif")
WebClient.GET("http://192.168.1.49/orange/images/username.gif")
WebClient.GET("http://192.168.1.49/orange/images/clear.gif")
WebClient.GET("http://192.168.1.49/orange/images/password.gif")
WebClient.GET("http://192.168.1.49/orange/buttons/btn_go.gif")
EndPage("Logoff")
Me.LogToFile("joeyd")
End Sub
'Create by Richard Hudson
'Created on 03/11/2005
'this function assumes WebClient.Get has called an asp page and contains a response.header named rec_page
'the content of the header should be populated with a querystring,
'which is concatenated with the strHost parameter, hence strHost can not caontian any querystring parameters
'rec_page is set to the string value "empty" if it is not populated
Private Sub GetRecursive(ByVal WebClient As RedGate.Ants.Engine.Web.WebClient, ByVal strHost As String)
Dim strPage As String 'stores the drill down info for a page, collected from the page header
strPage = WebClient.HttpResponse.Headers.Item("rec_page").ToString
If strPage.ToLower = "empty" Then strPage = ""
Do While Trim(strPage) <> ""
Sleep(500)
WebClient.Get(strHost & strPage)
Me.LogToFile("*** -> " & strHost & strPage)
strPage = WebClient.HttpResponse.Headers.Item("rec_page").ToString
If strPage.ToLower = "empty" Then strPage = ""
Loop
End Sub
End Class
Have you checked the 'summary information by metric\script errors and Http errors' section for any errors that are happening when the script is run?
Note -- There is no need to re-post your script -- the board cuts everything off longer than 16K.