Check-in [4f285c3b31]
Overview
| Comment: | Allow to add custom statusmsg for lengthier HTTP requests. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
4f285c3b313fb52db83c9cee132e211f |
| User & Date: | mario on 2015-05-02 19:53:28 |
| Other Links: | manifest | tags |
Context
|
2015-05-02
| ||
| 19:53 | Use shorter entity_decode() call. Strip example content. check-in: 405eaaa660 user: mario tags: trunk | |
| 19:53 | Allow to add custom statusmsg for lengthier HTTP requests. check-in: 4f285c3b31 user: mario tags: trunk | |
| 19:52 | Move strip_tags(), entity_decode(), and nl() out of class into normal functions. check-in: 41c3273da9 user: mario tags: trunk | |
Changes
Modified ahttp.py from [4ef18dd32d] to [1ab0a64254].
| ︙ | |||
29 30 31 32 33 34 35 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | - + - + |
# use reset values if none given
if not args:
args = ["", 1.0]
# send to main win
if feedback:
|
| ︙ | |||
76 77 78 79 80 81 82 | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | - - - - + - + + + + + - + |
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 );
|
| ︙ |