Here is a simple login page which works as a login panel for 4shared.com:
<form id="login_form" method="post" action="https://www.4shared.com/index.jsp">
<input type="text" placeholder="username" name="login" id="iloginfield">
<input type="password" placeholder="password here" name="password" id="ipassfield">
<input type="submit" value="Login">
</form>
It works.
And I thought I could simply run:
curl "http://www.4shared.com/index.jsp" -d "login=xxxxxxx&password=yyyyyyyyyyyyy" -D "/tmp/header.txt"
Which should have worked.
But it failed.
Why? How can I make it?
What output are you seeing? You may want to store cookies that the server sends you.