in reply to Re^2: WWW::Mechanize text field in thread WWW::Mechanize text field
You should be able to set the serverSpec field as well even though it is hidden. My suggestion would be to check the headers to see if the server value changes often. If it appear to be the same it may be used to switch servers for testing or other purposes. If it changes often it is more likely used for load balancing.
If it appears to be static you could just set the field to that value in your script. If it seems to change frequently you could still do that using one of the values. However but if it is used for load balancing you are doing an end run around it. If this script will be used a lot that would be impolite to say the least. The best approach in that case would be to find a way to get the dynamic value each time the script is run.
|