cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Downloading page source code

From: Thomas Raef <traef_at_ebasedsecurity.com>
Date: Thu, 29 Jan 2009 06:04:06 -0600

>
> Well, first, thanks for the fast reply Dan. I did see that faq section
> before posting, but I didn't know about the "?" character, you could
> maybe put this in
> there, since a lot of URL's have the "?". Anyway, I tried the command
(
> > curl "http://www.megaupload.com/pt/?d=WU62GDNI" ), but i get
> nothing,
> not even an error. When i try it with the "-O" option to output to a
> file, the progress bar shows only zeroes. I don't know, I think maybe
> they have something
> that doesn't allow to download the page unless you're using a
> browser...

If that's the case, you could try it by specifying a user-agent before
running your curl command.

Like: curl -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
"http://www.megaupload.com/pt/?d=WU62GDNI"
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-29