webresponse


making WebResponse GetResponse WebBot wait for redirect


I am making a bot that simulates a human user using a specific website.
When the user uses the site here is what happens
the user uploads a file by using the site's Browse button and then clicks Upload
the server responds immediately and the user sees a Please Wait gif
in the meantime the server is evaluating the file for errors. When it is done it redirects, and the user is take to a new .aspx page where they can correct the errors.
What I am not able to do w the bot is make it wait to get the redirect info.
The bot hits the website with this line of code (VB.NET)
Dim Response As HttpWebResponse = CType(Request.GetResponse(), HttpWebResponse)
The Response has the Please Wait gif in it, not the Errors.aspx page. Somehow I need to make the bot, execute that line of code above then, sorta listen to the same port(?) and wait for the web server to send another response.
Ideas?
I ended up just sleeping the thread, then hitting the url again, repeatedly till I got the response I wanted.

Related Links

making WebResponse GetResponse WebBot wait for redirect

Categories

HOME
xpath
extjs
verification
yaml
yii
enums
nsview
hdfs
theano
odata
iverilog
autocomplete
turbojpeg
clone
haxe
fedora
save
phpmqtt
graphql-js
circleci
documentum
live-streaming
squid
google-tasks-api
rest-assured
vertica
android-contacts
gravity
string-formatting
cpu-usage
azure-machine-learning
spring-ldap
akka-persistence
tableview
fluent-migrator
amazon-sns
ini
android-service
django-import-export
sfml
fatfs
series
nsmutablearray
cloudera-manager
xmlunit
cmis
android-canvas
des
numerics
jslint
installanywhere
google-now
slideshow
jacoco-maven-plugin
system-on-chip
coverage.py
transparency
md5-file
htmlspecialchars
http-basic-authentication
mechanicalturk
emf-compare
http4s
pbx
oracle-fusion-apps
ternary-operator
nclam
msg
livecycle
dojo-build
node-glob
accessibilityservice
gridbaglayout
wepay
lowercase
highest
android-studio-import
console.log
azure-xplat-cli
android-audiomanager
mutators
dos2unix
configurable-product
zend-mail
relationships
back
loginview
osascript
prism.js
cidr
hotswap
roxy-fileman
discovery
grails-2.3
acitree
insertonsubmit
pacman
chartfx
notin
jsplitpane
onconfigurationchanged
gitx
pageheap
trialware
glx
infopath-2007
asio
mygeneration
icicles
source-code-protection
eai
datagridcolumn
server-load

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App