LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 04-19-2009, 12:41 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 51
Any ideas to pass the "ERROR 400: Bad Request." of WGET?


Hello,

Although wget is very powerful, wget can hangs on anti-robot websites.
So something that works it to :
Code:
lynx -dump URL
but that
Code:
wget -k
I have to say is very handy and useful.

Any ideas how to make wget avoiding this ERROR 400 ?
 
Old 04-19-2009, 12:46 PM   #2
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by frenchn00b View Post
Hello,

Although wget is very powerful, wget can hangs on anti-robot websites.
So something that works it to :
Code:
lynx -dump URL
but that
Code:
wget -k
I have to say is very handy and useful.

Any ideas how to make wget avoiding this ERROR 400 ?


SOLVED

add --user-agent Mozilla/4.0

Code:
beta:~/Desktop mario$ wget --user-agent Mozilla/4.0 http://www.englisch-hilfen.de/mp3/leann_rime.mp3
--01:11:22--  http://www.englisch-hilfen.de/mp3/leann_rime.mp3
           => `leann_rime.mp3'
Resolving www.englisch-hilfen.de... done.
Connecting to www.englisch-hilfen.de[87.106.2.52]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,910,784 [audio/x-mpeg]

100%[====================================>] 1,910,784    607.03K/s    ETA 00:00

01:11:26 (607.03 KB/s) - `leann_rime.mp3' saved [1910784/1910784]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: Error for wireless request "Set Mode" (8B06) : invalid argument "roaming" penguin chick Linux - Wireless Networking 5 08-22-2008 02:16 PM
httpd mod_securiry generating 400 bad request error lcornea Linux - Newbie 4 02-28-2008 09:40 AM
I'm getting an error 400 (Bad Request) jim.thornton Linux - Server 1 01-20-2008 12:42 AM
Mousepad can't print: "client-error-bad-request" quincy_the_penquin Linux - Desktop 0 09-19-2007 03:58 PM
"client-error-bad-request" with kdeprint 144419855310001 Linux - Networking 2 11-17-2006 09:48 AM


All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration