Saturday, June 22, 2013

POST request to the server using Terminal (Linux)



POST request to the server using Terminal 



curl -d "parameter1=value1&parameter2=value2" page_url

  Example:
 
  page located at http://www.formpost.com/getthis/
 
        <form action="post.cgi" method="post">
        <input name=user size=10>
        <input name=pass type=password size=10>
        <input name=id type=hidden value="blablabla">
        <input name=ding value="submit">
        </form>
 
  We want to enter user 'foobar' with password '12345'.
 
  To post to this, you enter a curl command line like:
 
curl -d "user=foobar&pass=12345&id=blablabla&ding=submit" http://www.formpost.com/getthis/post.cgi

2 comments:

  1. Your words brought such good vibes—thank you sincerely. Read this profile. Reaction Time Test can show how well your brain processes quick signals.

    ReplyDelete
  2. I’m thankful for your detailed breakdown; it made the topic very easy to understand. Read this article for more. Click Speed Test instantly shows your click-per-second rate.

    ReplyDelete