Click here to Skip to main content
16,019,976 members
Home / Discussions / Java
   

Java

 
GeneralRe: Voice Recognition for Reading Program Pin
luc53252317-Mar-11 7:08
luc53252317-Mar-11 7:08 
QuestionEvent Listener problem Pin
kurt114-Mar-11 10:46
kurt114-Mar-11 10:46 
AnswerRe: Event Listener problem Pin
TorstenH.14-Mar-11 23:33
TorstenH.14-Mar-11 23:33 
GeneralRe: Event Listener problem Pin
kurt117-Mar-11 10:38
kurt117-Mar-11 10:38 
GeneralRe: Event Listener problem Pin
kurt119-Mar-11 10:10
kurt119-Mar-11 10:10 
QuestionHtml parser Pin
Aljaz11114-Mar-11 9:10
Aljaz11114-Mar-11 9:10 
AnswerRe: Html parser Pin
Manfred Rudolf Bihy14-Mar-11 12:41
professionalManfred Rudolf Bihy14-Mar-11 12:41 
AnswerRe: Html parser Pin
Luc Pattyn14-Mar-11 13:41
sitebuilderLuc Pattyn14-Mar-11 13:41 
Hi,

403 means "forbidden", which could be many things, however it is decided by the server, and the net result is you aren't getting any data. So it is not the parsing that is at fault, it is the way you ask for the web page.

I tried http://www.imdb.com with my existing C# program and it loads fine; one thing I remember very well doing after some sporadic failures, is provide a realistic "useragent", which is a string explaining what the client's characteristics/capabilities are. I use
"Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.17"
which was what FireFox emitted at that time.

I suggest you figure out where and how to specify such useragent in your code.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: Html parser Pin
Aljaz11114-Mar-11 13:55
Aljaz11114-Mar-11 13:55 
AnswerRe: Html parser Pin
Luc Pattyn14-Mar-11 14:20
sitebuilderLuc Pattyn14-Mar-11 14:20 
GeneralRe: Html parser [modified] Pin
Aljaz11114-Mar-11 17:33
Aljaz11114-Mar-11 17:33 
AnswerRe: Html parser Pin
all_in_flames8-Jun-11 8:42
professionalall_in_flames8-Jun-11 8:42 
QuestionAction Listener help Pin
mr_plow9914-Mar-11 1:37
mr_plow9914-Mar-11 1:37 
AnswerRe: Action Listener help Pin
Luc Pattyn14-Mar-11 3:28
sitebuilderLuc Pattyn14-Mar-11 3:28 
AnswerRe: Action Listener help Pin
David Skelly14-Mar-11 23:20
David Skelly14-Mar-11 23:20 
GeneralRe: Action Listener help Pin
TorstenH.14-Mar-11 23:35
TorstenH.14-Mar-11 23:35 
Questioninitialization of 3D array in java Pin
gateway2314-Mar-11 0:14
gateway2314-Mar-11 0:14 
AnswerRe: initialization of 3D array in java Pin
Luc Pattyn14-Mar-11 3:31
sitebuilderLuc Pattyn14-Mar-11 3:31 
AnswerRe: initialization of 3D array in java Pin
musefan14-Mar-11 4:23
musefan14-Mar-11 4:23 
QuestionSystem.exit is always zero Pin
Indrojeet14-Mar-11 0:08
Indrojeet14-Mar-11 0:08 
AnswerRe: System.exit is always zero Pin
Richard MacCutchan14-Mar-11 2:20
mveRichard MacCutchan14-Mar-11 2:20 
AnswerRe: System.exit is always zero Pin
jschell14-Mar-11 8:46
jschell14-Mar-11 8:46 
QuestionArray of Object Pin
future383911-Mar-11 13:11
future383911-Mar-11 13:11 
AnswerRe: Array of Object Pin
shivamkalra11-Mar-11 19:24
shivamkalra11-Mar-11 19:24 
GeneralRe: Array of Object Pin
jschell13-Mar-11 10:02
jschell13-Mar-11 10:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.