aspose file tools*
The moose likes Java in General and the fly likes help on program to interact with a webserver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "help on program to interact with a webserver" Watch "help on program to interact with a webserver" New topic
Author

help on program to interact with a webserver

tro vial
Greenhorn

Joined: May 22, 2012
Posts: 17
Hi all, i am trying to make a program to interact with a webserver.

This is supposed to be more or less generic, still don't have a specific purpose for it.

But to better illustrate what am trying to do, here is in example:

every time a friend on Facebook friends publishes something, the program would automatically place a like on my behalf.

Can this be done?
Is java an adequate language to do this? if not what is the most adequate?
Are there open source programs out there already doing this, so i can take ideas or even adjust the program to do what i want?


edit:
To better describe what i am trying to do:

The program would have to refresh from x to x seconds, search the server response for YYYYYYY event, and trigger a response to the server.
What is troubling me here is the communication with the server part.





thanks in advance

Best regards
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3371
    
    9
You should check out Facebook's Graph API. It allows you to access Facebook through HTTP commands and OAuth. You can search for libraries that handle the HTTP protocol and OAuth authentication, or you can search for a library that already does this for you in Java.

http://developers.facebook.com/docs/reference/api/
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
every time a friend on Facebook friends publishes something, the program would automatically place a like on my behalf.

I hope that's just an example, and not something you're actually considering doing. IMO, that would be as annoying as those auto-replies to email from people who are using that just to acknowledge an email, even though they are not away from the office.

The first tool of choice for programmatic website access for me is always HtmlUnit (or JWebUnit, which builds on top of it).


Ping & DNS - updated with new look and Ping home screen widget
tro vial
Greenhorn

Joined: May 22, 2012
Posts: 17
Ulf Dittmer wrote:
I hope that's just an example, and not something you're actually considering doing. IMO, that would be as annoying as those auto-replies to email from people who are using that just to acknowledge an email, even though they are not away from the office.


Yes its an example on something everyone know, for easier comprehension.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help on program to interact with a webserver
 
Similar Threads
How do you connect Java 1.4.1 to Oracle 8i
How to retrive data in Applet from a webserver !
how run this server over internet
ONE-PROGRAM-ONLY computer