Hi!
 
I want to make simple calls to a URL in order to update some data values. The 
URL is as following:
 
http://www.myurl.com/test?param1=value1&param2=value2&param3=value3&param4=value4
 
Is there any way to do this efficiently using HttpClient 4? (I will do the call 
to the URL every minute).
 
Best regards,
Sul Adna
 
P.S.
 
I have tried writing the following:
 
HttpClient client = new HttpClient();
PostMethod method = new PostMethod( "http://www.myurl.com/test"; );
method.addParameter( "param1", "value1" );
method.addParameter( "param2", "value2" );
method.addParameter( "param3", "value3" );
method.addParameter( "param4", "value4" );
client.executeMethod( method );
 
... but it doesn't work (the website is not updated).


      

Reply via email to