73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
r = session.get(url, params=params, headers=headers, timeout=9.75)
__print__( dbg.HTTP, r.request.headers );
__print__( dbg.HTTP, r.headers );
# finish, clean statusbar
#progress_feedback(0.9)
progress_feedback("")
# result
__print__( dbg.INFO, "Content-Length", len(r.content) )
if not content:
return r
elif binary:
return r.content
|
|
|
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
r = session.get(url, params=params, headers=headers, timeout=9.75)
__print__( dbg.HTTP, r.request.headers );
__print__( dbg.HTTP, r.headers );
# finish, clean statusbar
#progress_feedback(0.9)
#progress_feedback("")
# result
__print__( dbg.INFO, "Content-Length", len(r.content) )
if not content:
return r
elif binary:
return r.content
|