Variables in wget post data Variables in wget post data bash bash

Variables in wget post data


change:

--post-data 'email=$EMAIL&password=$PASSWRD'

to:

--post-data="email=$EMAIL&password=$PASSWRD"

bash manual about Quoting: http://www.gnu.org/software/bash/manual/bashref.html#Quoting


important:Do not use :

--header="Content-Type: text/xml" 

together with --post-data. It will override

--header="Content-Type: application/x-www-form-urlencoded" 

issued by wget. Post-data will not be received by HttpServlet