Jump to content

Help with an application

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Silvestros

Silvestros

    Newbie

  • Members
  • PipPip
  • 12 posts
Hello community! I'm a new member and very excited about this forum!

I need to create an application which sends text to a specific website, makes a specific request and gets the results.
For example, the application sends the text "My dog's name is Hercules." to google translate, requests translation and gets the result.
Another example, the application sends "ubuntu linux" to Google then requests search with these words and gets the results.

Is there any idea how to accomplish that? Maybe with the java.net package or another java lib?
Is there any application that provides such services so I don't have to create anything? I already tried wput and wget but didn't make it.

Thanks in advance for your help! It's very important to me. :)

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
There is a very complete package named CURL that should be fine for most of your requirements. Are you wishing to do it just from the command line or implement it simply into a progamming language? You can do both with it.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
Silvestros

Silvestros

    Newbie

  • Members
  • PipPip
  • 12 posts
Thank you for your answer my friend. I prefer to implement it simply into a programming language. I'll check this CURL package and let you know if this worked for me.

#4
Silvestros

Silvestros

    Newbie

  • Members
  • PipPip
  • 12 posts
I made it with curl! I did it from the command line after all, so now I have to learn some shell scripting to make a script. Thank you very much again!