java - How to parse HttpServletRequest for curl / wget options? -
when request done in curl user parameter like:
curl -u <user> http://url...
how can user?
since curl
uses http basic authentication default, user , password combined using :
separator , encoded using rfc2045-mime variant of base64. can base64-encoded value authorization
header. header may looks authorization: basic qwxhzgrpbjpvcgvuihnlc2ftzq==
.
Comments
Post a Comment