[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpclient-users
Subject:    Re: cannot load rss xml with httpclient 3.0 .
From:       Roland Weber <http-async () dubioso ! net>
Date:       2006-02-26 8:55:16
Message-ID: 44016CF4.4020005 () dubioso ! net
[Download RAW message or body]

Hi RZG,

> when i attempted load a rss url using PostMethod in httpclient 3.0,an 403
> status returned.
> but i can access this rss url  through the ie or other browsers.
> would there be any parameters must be setted?

Most likely.

> GetMethod postMethod = new GetMethod(

The type of a method does not depend on the variable name. If you create
an object of type GetMethod, it will be a GET method, no matter how many
"post" you put into the variable name.

That is probably not the only error in your code.
I suggest you go through the checklist...
http://mail-archives.apache.org/mod_mbox/jakarta-httpclient-user/200602.mbox/%3C43ECC443.8020004@dubioso.net%3E


Don't take the "identical" in step 7 literally.
The followup mails will tell you what I mean.

cheers,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic