Forum Discussion
xiangyang_zhang
Nimbostratus
Mar 13, 2006Add "http://" in HTTP response
Hello, all
In some HTTP requests, protocol identifier 'http://' is not added. We would like to add "http://" in URL if it doesn't exist. I wrote two iRules for this purpose, neither of them ...
andy_12_5042
Nimbostratus
Jan 06, 2011hey thanks Matt. I actually found a video tutorial that you have here, which was great and explained everything.
http://devcentral.f5.com/weblogs/dctv/archive/2010/02/24/techdump-managing-multiple-systems-with-pycontrol-v2.aspx
That is where I also got the reference to look at your sample code that comes with pycontrol. I seemed to miss that and did not even think to check in the samples. That also gives me a great start to playing with threads. I have been able to get method 1 (from your suggestions above) to work great. Now, I want to see if I can get the thread design to work as it would be better. However, as you have stated it is complex and to do it correctly, I need to consider lots of different variables, so it may take me some time to do the right way...
One thing to mention, in your video you mentioned a bug with the clone() method in python 2.6... I actually was playing around with something else and got the depth error. I recall finding some solution to that but since the project went another direction, I did not end up using it... I will see if I can dig that up again and find what it was.
Unless you have already found something as that was a few months old..
Thanks
Andy