@@ -36,17 +36,15 @@ class Session():
3636 'asbotname' , 'ttsvoice' , 'typing' , 'lineref' , 'fno' , 'sub' ,
3737 'islearning' , 'cleanslate' ]
3838
39- headers = dict ()
40- headers ['User-Agent' ] = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0)'
41- headers ['User-Agent' ] += ' Gecko/20130101 Firefox/26.0'
42- headers ['Accept' ] = 'text/html,application/xhtml+xml,application/xml;'
43- headers ['Accept' ] += 'q=0.9,*/*;q=0.8'
44- headers ['Accept-Language' ] = 'en-us;q=0.8,en;q=0.5'
45- headers ['X-Moz' ] = 'prefetch'
46- headers ['Accept-Charset' ] = 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
47- headers ['Referer' ] = 'http://www.cleverbot.com'
48- headers ['Cache-Control' ] = 'no-cache, no-cache'
49- headers ['Pragma' ] = 'no-cache'
39+ headers = {
40+ 'Accept' : 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' ,
41+ 'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' ,
42+ 'Accept-Language' : 'en-us;q=0.8,en;q=0.5' ,
43+ 'Pragma' : 'no-cache' ,
44+ 'Referer' : 'http://www.cleverbot.com' ,
45+ 'User-Agent' : 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20130101 Firefox/26.0' ,
46+ 'X-Moz' : 'prefetch'
47+ }
5048
5149 def __init__ (self ):
5250 self .arg_list = ['' , 'y' , '' , '' , '' , '' , '' , '' , '' , '' , 'wsf' , '' ,
0 commit comments