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
b95a99e0
Commit
b95a99e0
authored
Dec 05, 2016
by
Stefan Seidel
Browse files
remove cookiejar temp file
parent
3ebbeb10
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_do.sh
View file @
b95a99e0
...
...
@@ -98,8 +98,6 @@ _dns_do_soap() {
# set SOAP headers
_H1
=
"SOAPAction:
${
DO_URL
}
#
${
func
}
"
# add cookie header if present
[
-s
"
${
_cookiejar
}
"
]
&&
_H2
=
"
$(
cat
"
${
_cookiejar
}
"
)
"
if
!
response
=
"
$(
_post
"
${
_xml
}
"
"
${
DO_URL
}
"
)
"
;
then
_err
"Error <
$1
>"
...
...
@@ -108,7 +106,7 @@ _dns_do_soap() {
_debug2
"SOAP response
$response
"
# retrieve cookie header
_egrep_o
'Cookie: [^;]+'
<
"
$HTTP_HEADER
"
|
head
-1
>
"
${
_cookiejar
}
"
_H2
=
"
$(
_egrep_o
'Cookie: [^;]+'
<
"
$HTTP_HEADER
"
|
head
-1
)
"
return
0
}
...
...
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