Set value conf.hostname
()
| 1533 | conf.httpHeaders.append((HTTP_HEADER.COOKIE, conf.cookie)) |
| 1534 | |
| 1535 | def _setHostname(): |
| 1536 | """ |
| 1537 | Set value conf.hostname |
| 1538 | """ |
| 1539 | |
| 1540 | if conf.url: |
| 1541 | try: |
| 1542 | conf.hostname = _urllib.parse.urlsplit(conf.url).netloc.split(':')[0] |
| 1543 | except ValueError as ex: |
| 1544 | errMsg = "problem occurred while " |
| 1545 | errMsg += "parsing an URL '%s' ('%s')" % (conf.url, getSafeExString(ex)) |
| 1546 | raise SqlmapDataException(errMsg) |
| 1547 | |
| 1548 | def _setHTTPTimeout(): |
| 1549 | """ |
no test coverage detected
searching dependent graphs…