fintanr's weblog

Archives

« December 2009
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today

the links




Twitter Updates

    follow me on Twitter
















    20050113 Thursday January 13, 2005

    A quick wget tip
    A wget tip, or maybe not. I was working on a script today that had to do a submission of a very long parameter string to a cgi script, and it turned out to be too long for a get. So I went off and visited the wget manpages (man -M /usr/sfw/man wget). And here I noted the --post-data option which I hadn't been aware off before. A quick example is in order I think.

    Lets say you are doing a submission to a url with a submission string of http://foo.com/cgi/myScript?really_long_set_of options, rather than doing

    wget http://foo.com/cgi/myScript?really_long_set_of options
    
    You can do
    wget --post-data 'really_long_set_of_options' http://foo.com/cgi/myScript
    
    A handy trick for the toolbox.
    (2005-01-13 02:29:34.0) Permalink Comments [0]

    Trackback URL: http://blogs.sun.com/fintanr/entry/a_quick_wget_tip
    Comments:

    Post a Comment:

    Name:
    E-Mail:
    URL:

    Your Comment:

    HTML Syntax: NOT allowed