On Thu, Jan 2, 2014 at 1:20 PM, <[email protected]> wrote:

> I ocassionally get html emails containg clickable links as so:
>
>
> http://xxx.domtld.com/portal?id=a0590000007JM3UAAW0019999999KlOrcAAF140102111731729&key=b024bb39c058d395037a907b7b6436e0&resp=1
>
> I'd like to try to parse the email for the link, and, 'click it'
>
> is wget appropriate tool for this ?
>

While wget has *some* HTML parsing capabilities, it is not the correct tool
for this job. Once you have the link, you can download the contents through
wget.

>
> I tried to 'wget http://xxx.domtld.com/.../&resp=1 ',
>
> but, it seems to return differnt page contents than I get in a browser
>

A sample would be nice for debugging. But most probably the problem is
quoting. You need to quote your URL between single quotes so that the shell
meta characters are sent to Wger as-is.
Use:
wget 'http://xxx.domtld.com/.../&resp=1'



> is there some other options i should include ?
>
> pointers welcomed, thanks for any help or suggestions
>
> Voytek
>
>
>


-- 
Thanking You,
Darshit Shah

Reply via email to