• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP push

 
Naveen Pramod
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Is it possible to pop up a browser by just knowing the ip address of the client? If I send a HTTP stream with necessary headers intact using a core-java program or a servlet how can I make the browser on the client to display this?


How do i make the server2 to display the processed info on the client side? Will HTTPclient package help me in this?

Thanks a lot.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its a request-response mechanism. You can not make response while having no request. Or in other words you can not make two responses in reaction of one request.

You can do it using iFrames or meta refresh, I suppose.
 
Naveen Pramod
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply.
The problem is, I do not have access to any code in SERVER1(servlet,jsp,etc...). Do you see any way out?

Thank you,
Naveen.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Server2 can't, really can't, respond to the client directly, unless client doesn't make any request to Server2.
 
Naveen Pramod
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for the reply, i got it that its a request-response mechanism.

If i know the ip-address, can I establish a socket connection from the server and push the HTTP stream? i can get access to the session-id. But I guess I would not be able to spawn the browser to display the HTTP stream sent via the socket, can I do that?

Thank you very much,
Naveen.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope, simply.

First of all it would be difficult, or can say impossible, to know the exact client IP when some proxy or firewall is in between. If you get the IP by any mean even then you can't throw the content to the browser.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Naveen Pramod:
i can get access to the session-id.


No use.
 
Naveen Pramod
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for the help.

Naveen.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!