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==.

see this wiki , rfc 2617 more information.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -