Re: Sample code for setting header and body of request to be sent to remote server.

2004-02-26 Thread hareesh babu
import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.methods.GetMethod; import org.apache.commons.httpclient.methods.PostMethod; import org.apache.commons.httpclient.cookie.CookiePolicy; import java.io.IOException; public class Test4 { public static void main(String[]

Sample code for setting header and body of request to be sent to remote server.

2004-02-25 Thread Saifadam Pathan
Hi everyone,     can someone please help me to do the following:   I wish to create a connection and send a request to an website(using get or post ,etc methods). bUt most importantly, i dont know is how do i form The header and the parameters and etc... for the request and then send it.