[tclwebtest] Problems with void redirection
Status: Abandoned
Brought to you by:
tils
From: Grzegorz A. H. <gr...@ef...> - 2003-01-30 16:54:18
|
Hi. I'm testing a script against our server, but redirection fails. In order to track down the problem (which I supposed involved cookie handling) I added a new parameter to do_request, so that it can be told to not follow the redirection, but return the new location url. Patch attached (no_redirection_patch.gz). Now, after applying that patch I tested this code: do_request http://www.efaber.net/ log [cookies all] log "Trying to change language now" set url [link get_url Euskaraz] set url [do_request -noredirect $url] log "We were pointed at '$url'" log [cookies all] set url [do_request -noredirect $url] log "We were pointed at '$url'" log [cookies all] set url [do_request -noredirect $url] log "We were pointed at '$url'" log [cookies all] log "Now trying to do all automatically" do_request http://www.efaber.net/ link follow {English} The script does a manual redirection displaying the cookies' values at each individual step. But then I discovered that it's not a cookie problem. Attached is the log of the script (no_redirection_problem_log.gz), it shows how the manual do_request do well, accepting the cookies and setting their values. The last automatic "link follow" command fails after the second redirection, because it tries to follow a void url. Just to verify that the http headers were correct (they send a void Location field), I also attach the results of telnetting manually to the server. It returns a manual redirection, also with a blank value (no_redirection_problem_http_logs.gz). How should I deal with this? I presume this blank redirection AOLServer sends means that the browser should return to the original url before the redirections started, but looks a very awkward behaviour. Maybe this would require a "history" variable in tclwebtest? PD: It would be cool if link follow also understood the switches of do_request, but I understand this is a little difficult because it first calls link find. -- Grzegorz Adam Hankiewicz, gr...@ef.... Tel: +34-94-472 35 89. eFaber SL, Maria Diaz de Haro, 68, 2 http://www.efaber.net/ 48920 Portugalete, Bizkaia (SPAIN) |