Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
ce9fae82
Unverified
Commit
ce9fae82
authored
Dec 29, 2016
by
Armando Lüscher
Browse files
Update cookie retrieval using _egrep_o (thanks @Neilpang)
parent
afa3fc8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cyon.sh
View file @
ce9fae82
...
...
@@ -134,7 +134,7 @@ _cyon_print_header() {
}
_cyon_get_cookie_header
()
{
printf
"
%s"
"
$(
sed
-n
's/
Set-
\(
Cookie:
.*cyon=[^;]*\).*/\1/p'
"
$HTTP_HEADER
"
| _tail_n 1
)
"
printf
"
Cookie: %s"
"
$(
cat
"
$HTTP_HEADER
"
|
grep
"cyon="
|
grep
"^
Set-Cookie:
"
| _tail_n 1 | _egrep_o
'cyon=[^;]*;'
|
tr
-d
';'
)
"
}
_cyon_login
()
{
...
...
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