-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get curl command line for a request #80
base: master
Are you sure you want to change the base?
Conversation
… as a curl command line
…t we update referer on redirects
…ns if redirects are disabled
Can now add paths that start with non-/ chars https://daniel.haxx.se/blog/2017/06/19/options-with-curl/ |
end | ||
end | ||
elseif name == "user-agent" then | ||
cmd[n+1] = "-A" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If user agent not set then need to tell curl not to send one. -H "User-Agent;"
n = n + 2 | ||
end | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to tell curl to not send Accept
if we don't set that header ourselves.
WIP
Open Questions: