Technology Insights

Do Not Save Output Of wget Post Data

If you are putting together a script that uses wget to post data to various URL’s it is likely that you do not want wget to save the response back from the server in files. You can easily get around this by specifying the output file that wget save to with the -O switch. Below is an example of what would happen when the -O switch is not used followed by an example of using wget with the -O switch outputting the results to /dev/null.