download file

download file

am 16.09.2008 20:18:36 von Bhikkhu Mettavihari

hi,

I am on linux

How do I download a file from this site ?

http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak= TY

when I do
$wget http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak= TY
then I get a small file by the name of "gm.asp?ai=214" with content like this.



CastUP: Unknown Error

Error: Unknown Error






Regards
Mettavihari
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: download file

am 16.09.2008 20:32:04 von Ben Kevan

On Tuesday 16 September 2008 11:18:36 am you wrote:
> hi,
>
> I am on linux
>
> How do I download a file from this site ?
>
> http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak= TY
>
> when I do
> $wget http://switch3.castup.net/cunet/gm.asp?ai=214&ar=1050wmv&ak= TY
> then I get a small file by the name of "gm.asp?ai=214" with content like
> this.
>
>
>
> CastUP: Unknown Error
>
> Error: Unknown Error
>
>
>

>

>
>
> Regards
> Mettavihari
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs

The reason you are getting that is because that's the file you're telling it
to download.

wget is working perfectly.

Are you trying to have wget figure out where the asp file is pointing you to
download?


--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: download file

am 16.09.2008 20:52:02 von rene

Are you getting this error because address contains the & character,
that it's used by shell to start proccess in background,
you can easily download file with wget by putting double quotes in addr=
ess:

wget "http://switch3.castup.net/cunet/gm.asp?ai=3D214&ar=3D1050wm v&ak=3D=
TY"

or use \& instead &, like this:

wget http://switch3.castup.net/cunet/gm.asp?ai=3D214\&ar=3D1050wm v\&ak=3D=
TY

Cheers;

Ren=EA

On Tue, Sep 16, 2008 at 3:32 PM, Ben Kevan wrote:
>
> On Tuesday 16 September 2008 11:18:36 am you wrote:
> > hi,
> >
> > I am on linux
> >
> > How do I download a file from this site ?
> >
> > http://switch3.castup.net/cunet/gm.asp?ai=3D214&ar=3D1050wmv &ak=3DT=
Y
> >
> > when I do
> > $wget http://switch3.castup.net/cunet/gm.asp?ai=3D214&ar=3D1050wmv =
&ak=3DTY
> > then I get a small file by the name of "gm.asp?ai=3D214" with cont=
ent like
> > this.
> >
> >
> >
> > CastUP: Unknown Error</title=<br /> ><br /> > > <entry><br /> > > <title>Error: Unknown Error=<br />
> >
> >
> >
> >

> >
> >
> > Regards
> > Mettavihari
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-new=
bie" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at http://www.linux-learn.org/faqs
>
> The reason you are getting that is because that's the file you're tel=
ling it
> to download.
>
> wget is working perfectly.
>
> Are you trying to have wget figure out where the asp file is pointing=
you to
> download?
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbi=
e" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: download file

am 17.09.2008 02:42:59 von Bhikkhu Mettavihari

Hi Ren=EA and Ben

Thank you for the reply's

On Wed, Sep 17, 2008 at 12:22 AM, Ren=EA wrote:
> Are you getting this error because address contains the & character,
> that it's used by shell to start proccess in background,
> you can easily download file with wget by putting double quotes in ad=
dress:
>
> wget "http://switch3.castup.net/cunet/gm.asp?ai=3D214&ar=3D1050wm v&ak=
=3DTY"
>
> or use \& instead &, like this:
>
> wget http://switch3.castup.net/cunet/gm.asp?ai=3D214\&ar=3D1050wm v\&a=
k=3DTY

Thank you so much. I do get the file that wget is asking for.
But as you might know I am trying to download the video file that is
referenced to in this file
If any one of you can help with that would be great.

regards
Mettavihari
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: download file

am 17.09.2008 03:37:33 von rene

I think that are lot of ways, but this one should work:

1) Get the file with stream urls:

wget -O videos "http://switch3.castup.net/cunet/gm.asp?ai=3D214&ar=3D10=
50wmv&ak=3DTY"

PS: The contents will be saved in file "videos"

2) Extract the stream urls:

cat videos | grep "mms://" | sed "s/ url=
s

3) Now file "urls" contains each stream url

4) You can save the stream with Mplayer:

mplayer -dumpstream
"mms://s95wm.castup.net/server12/39182686-61.wmv?ct=3DBR&rg= 3DNA&aid=3D=
214&st=3D0&ts=3D0&cu=3D77D67414-0C4A-4A7E-A3EE-41600FDA4131"

PS: Do not forget to put the stream url in double quotes :)

Cheers;

Ren=EA

On Tue, Sep 16, 2008 at 9:42 PM, Bhikkhu Mettavihari
wrote:
> Hi Ren=EA and Ben
>
> Thank you for the reply's
>
> On Wed, Sep 17, 2008 at 12:22 AM, Ren=EA wrot=
e:
>> Are you getting this error because address contains the & character,
>> that it's used by shell to start proccess in background,
>> you can easily download file with wget by putting double quotes in a=
ddress:
>>
>> wget "http://switch3.castup.net/cunet/gm.asp?ai=3D214&ar=3D1050wm v&a=
k=3DTY"
>>
>> or use \& instead &, like this:
>>
>> wget http://switch3.castup.net/cunet/gm.asp?ai=3D214\&ar=3D1050wm v\&=
ak=3DTY
>
> Thank you so much. I do get the file that wget is asking for.
> But as you might know I am trying to download the video file that is
> referenced to in this file
> If any one of you can help with that would be great.
>
> regards
> Mettavihari
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbi=
e" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: download file

am 19.09.2008 06:07:19 von Bhikkhu Mettavihari

Thank you Ren=EA

That is working fine.

with metta
Mettavihari

On Wed, Sep 17, 2008 at 7:07 AM, Ren=EA wrote:
> I think that are lot of ways, but this one should work:
>
> 1) Get the file with stream urls:
>
> wget -O videos "http://switch3.castup.net/cunet/gm.asp?ai=3D214&ar=3D=
1050wmv&ak=3DTY"
>
> PS: The contents will be saved in file "videos"
>
> 2) Extract the stream urls:
>
> cat videos | grep "mms://" | sed "s/ u=
rls
>
> 3) Now file "urls" contains each stream url
>
> 4) You can save the stream with Mplayer:
>
> mplayer -dumpstream
> "mms://s95wm.castup.net/server12/39182686-61.wmv?ct=3DBR&rg= 3DNA&aid=3D=
214&st=3D0&ts=3D0&cu=3D77D67414-0C4A-4A7E-A3EE-41600FDA4131"
>
> PS: Do not forget to put the stream url in double quotes :)
>
> Cheers;
>
> Ren=EA
>
> On Tue, Sep 16, 2008 at 9:42 PM, Bhikkhu Mettavihari
> wrote:
>> Hi Ren=EA and Ben
>>
>> Thank you for the reply's
>>
>> On Wed, Sep 17, 2008 at 12:22 AM, Ren=EA wro=
te:
>>> Are you getting this error because address contains the & character=
,
>>> that it's used by shell to start proccess in background,
>>> you can easily download file with wget by putting double quotes in =
address:
>>>
>>> wget "http://switch3.castup.net/cunet/gm.asp?ai=3D214&ar=3D1050wm v&=
ak=3DTY"
>>>
>>> or use \& instead &, like this:
>>>
>>> wget http://switch3.castup.net/cunet/gm.asp?ai=3D214\&ar=3D1050wm v\=
&ak=3DTY
>>
>> Thank you so much. I do get the file that wget is asking for.
>> But as you might know I am trying to download the video file that is
>> referenced to in this file
>> If any one of you can help with that would be great.
>>
>> regards
>> Mettavihari
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-newb=
ie" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at http://www.linux-learn.org/faqs
>>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs