Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpClient- username and password error.  RSS feed

 
tyler durt
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to use httpclient to acheive the following:

1.My code is supposed to login to a site and get the data.

2.click on a particular link on a page to fetch data and then store it into a text file.


Here's the code that i was trying to use.Am i going wrong somewhere.
I want to see a page source which should be a replica of the page i see where my inbox messages are displayed,but the source i get is a login page.

please help.


 
Rob Spoor
Sheriff
Posts: 21089
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tyler durt wrote:The output is not what i was expecting.

http://faq.javaranch.com/java/ItDoesntWorkIsUseless

In other words, what were you expecting and what do you get?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!