Index: ahttp.py ================================================================== --- ahttp.py +++ ahttp.py @@ -52,11 +52,10 @@ #-- Retrieve data via HTTP # # Well, it says "get", but it actually does POST and AJAXish GET requests too. # def get(url, params={}, referer="", post=0, ajax=0, binary=0, feedback=None, content=True, verify=False): - log.HTTP("GET", url, params ) # statusbar info progress_feedback(url) # combine headers @@ -70,12 +69,14 @@ #srcout raise Exception("Simulated HTTP error") #endif # read if post: + log.HTTP("POST", url, params) r = session.post(url, params=params, headers=headers, timeout=7.5) else: + log.HTTP("GET"+(" AJAX" if ajax else ""), url, params ) r = session.get(url, params=params, headers=headers, verify=verify, timeout=9.75) log.HTTP(">>>", r.request.headers ); log.HTTP("<<<", r.headers );