wget format incorrect

I want to extract a web page to a temporary file as a source document. I tried: wget $webPgURL > /tmp/tmpfil
but it says I have a missing URL. I have echoed $webPgURL just prior to the wget command and it is correct. If I use: firefox $webPbURL it brings up firefox with the correct page. Can someone show me the properly set up command?

Try putting quotes around it, "$webPgURL".

Also,wget doesn't work that way, it doesn't output to stdout (by default). Try -O filename

When I enter:
wget $webPgURL -O /tmp/tmpfil 2>&1 >/dev/null
I get error 403 forbidden.
webPgURL="bluetest - Google Search"

The solution comes thru using the option: -U firefox.
Apparently when doing a search then grabbing the search page it needs this "user-agent". So now it works when constructed as:
url="Google"
xx="red%20green"
wget -U firefox -O /tmp/tmpfil $url$xx
will save the souce document into tmpfil as needed