Skip to content

Conversation

daurnimator
Copy link
Owner

@daurnimator daurnimator commented Aug 18, 2017

WIP

Open Questions:

  • How to handle non-string bodies?

@daurnimator
Copy link
Owner Author

Can now add paths that start with non-/ chars https://daniel.haxx.se/blog/2017/06/19/options-with-curl/

@coveralls
Copy link

coveralls commented Aug 18, 2017

Coverage Status

Coverage increased (+0.08%) to 88.008% when pulling 953c1cc on http.request.tocurl into e79ad71 on master.

end
end
elseif name == "user-agent" then
cmd[n+1] = "-A"
Copy link
Owner Author

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

Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants