Skip to main content

URLs testing tool.

Project description

urltesting

URLs testing tool.

Usage

C:\test\httptest>python urltesting.py simpleurls --help
Usage: urltesting.py simpleurls [OPTIONS]

  Test urls. Urls are fetched from an url.

Options:
  --listurl TEXT                  The url where to get all the urls.
                                  [required]

  --listurl-method TEXT           Request method. Default to GET.
  --listurl-param TEXT            Request parameter in format key=value. Can
                                  be applied mutiple times.

  --listurl-header TEXT           Request header in format
                                  header_name=header_value. Can be applied
                                  multiple times.

  --listurl-payload TEXT          Request payload.
  --list-format [list|jsonarray|json]
                                  The format of "--listurl" response content.
                                  "list" means every url per line. "jsonarray"
                                  means response content likes: ["/url1/",
                                  "url2"]. "json" means response likes:
                                  {"data": "urls": ["/url1", "url2"]}. Default
                                  to "list".

  --list-json-path TEXT           If "--list-format=json", use the path to get
                                  urls from the json data, e.g. "--list-json-
                                  path=data.urls" when the response content is
                                  {"data": {"urls": ["/url1/", "/url2/"]}}. If
                                  url string is NOT starts with http, the
                                  entry url "--listurl" will be used to make
                                  the final url with "urljoin" method.

  --loginurl TEXT                 Login url. [Optional]
  --loginurl-method TEXT          Request method. Default to GET.
  --loginurl-param TEXT           Request parameter in format key=value. Can
                                  be applied mutiple times.

  --loginurl-header TEXT          Request header in format
                                  header_name=header_value. Can be applied
                                  multiple times.

  --loginurl-payload TEXT         Request payload.
  --help                          Show this message and exit.

Releases

v0.1.0 2021/01/05

  • First release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

urltesting-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file urltesting-0.1.0.tar.gz.

File metadata

  • Download URL: urltesting-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for urltesting-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b7bcb8b035c5dd8266a153846f1bd00fe01dd3d7c8a55c2fc2d9e23366f58a8
MD5 aa7f81f2636ae269f1a8be821128e8d4
BLAKE2b-256 dd8c2f3870c5be2f2d4d41e4bbb7116977d4b63999a96e70c609aface113b3fa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page