Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
recurls
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
recurls
Commits
1797eb42
Commit
1797eb42
authored
Apr 06, 2023
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cli: Import only what needed
parent
8ad8f8ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/recurls/cli.py
src/recurls/cli.py
+2
-2
No files found.
src/recurls/cli.py
View file @
1797eb42
import
click
import
click
from
pprint
import
pprint
from
pprint
import
pprint
from
.
import
r
ecurls
from
.
recurls
import
R
ecurls
@
click
.
command
(
short_help
=
"Runs curl's wrapper recurl"
)
@
click
.
command
(
short_help
=
"Runs curl's wrapper recurl"
)
@
click
.
option
(
'--headers/--no-headers'
,
help
=
"Shows response headers"
,
default
=
False
,
show_default
=
True
)
@
click
.
option
(
'--headers/--no-headers'
,
help
=
"Shows response headers"
,
default
=
False
,
show_default
=
True
)
...
@@ -11,7 +11,7 @@ from . import recurls
...
@@ -11,7 +11,7 @@ from . import recurls
@
click
.
option
(
'--ip'
,
help
=
"IP to resolve to"
)
@
click
.
option
(
'--ip'
,
help
=
"IP to resolve to"
)
@
click
.
argument
(
"url"
)
@
click
.
argument
(
"url"
)
def
runRecurl
(
headers
,
output
,
verbose
,
curl
,
follow
,
ip
,
url
):
def
runRecurl
(
headers
,
output
,
verbose
,
curl
,
follow
,
ip
,
url
):
mimikra
=
recurls
.
Recurls
(
curl
)
mimikra
=
Recurls
(
curl
)
response
=
mimikra
.
get
(
url
,
ip
=
ip
,
allow_redirects
=
follow
)
response
=
mimikra
.
get
(
url
,
ip
=
ip
,
allow_redirects
=
follow
)
print
(
'Effective HTTP version:'
,
response
.
effective_http_version
)
print
(
'Effective HTTP version:'
,
response
.
effective_http_version
)
print
(
'Response status code:'
,
response
.
status_code
)
print
(
'Response status code:'
,
response
.
status_code
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment