Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sudarshan Kumar
How to use curl in java
June 20, 2012 4:34 AM
Answer

Sudarshan Kumar

Rank: Junior Member

Posts: 42

Join Date: August 12, 2011

Recent Posts

Hi all,

Can any one help me how to invoke curl (api/jsonws) using java program.

Thanks
Sudarshan
David H Nebinger
RE: How to use curl in java
June 20, 2012 5:15 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 5739

Join Date: September 1, 2006

Recent Posts

A) this is not a liferay issue, and should not be in the Liferay forum...

emoticon why would anyone want to?
Hitoshi Ozawa
RE: How to use curl in java
June 24, 2012 6:18 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

You'll be able to invoke Java from Curl using Curl ORB. Not sure the other way around.
Jelmer Kuperus
RE: How to use curl in java
June 24, 2012 12:06 PM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1190

Join Date: March 10, 2010

Recent Posts

You mean curl the commandline tool to make requests? Don't use that from java, use commons-http-client or liferay's HttpUtil.URLtoString