• Post Reply Bookmark Topic Watch Topic
  • New Topic

Send by HttpClient, receive by IE ?  RSS feed

 
yu yong
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody, I need your help.

I have a question now. The goal is to mock a request by client, and i choose apache's HttpClient. The mock is successful, but the question is that I cant display the response's stream by IE. The request's method is post and the parameter is necessary.

As i know Java can only open the IE with the url(get methord is OK, not post). But cannt let IE display the stream which is given by IE. How can I do. Waiting 4 your help.

yours.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by yu yong:
Waiting 4 your help.

Please use real words when posting to the forums. Abbreviations such as "4" in place of "for" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
 
Norm Radder
Rancher
Posts: 1733
22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure I understand your question. Is it something like this:
You have a java app that starts IE(Windows Internet Explorer) passing IE a URL to fetch. IE issues a GET to a server and the server returns some HTML.
You want to intercept that HTML that is returned by the server and NOT let IE see it.

One way would be to write a proxy server that IE would use to pass the request thru to the server and then grab the response returned, not passing it to IE.

What do you mean by "mock"?
[ June 26, 2008: Message edited by: Norm Radder ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!