wget problem in script (Solved)

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

wget problem in script (Solved)

#1 Post by PaulR »

Is it possible to use wget to get a dynamically generated page? I'm trying to get something like this:

wget --output-document=mydoc.txt http://www.example.com/test.aspx?id=1&name=fred

The command works and saves the content to a file as I wanted but wget just doesn't terminate (even when I try this from the command line rather than in a script). I suspect it's the ? and & characters that are causing the problem, if so is it possible to 'escape' these.

Pre-post edit: I just put the url in quotes and it works properly. Doh!

Leaving the post here as it might help someone else who is as thick as me!

Paul

Post Reply