Page 1 of 1

how to send request to an ip address - urgent

Posted: Wed Sep 09, 2009 6:42 am
by eshban
Suppose an application is running at 202.123.123.22 port 9005 which returns result in the form of an xml.

How can i send an request to the above ip address and got the response.

looking forward for your replies.

Thanks
Eshban

Re: how to send request to an ip address - urgent

Posted: Wed Sep 09, 2009 8:46 am
by jazz090
well depends if you want to use server side or client side

Re: how to send request to an ip address - urgent

Posted: Wed Sep 09, 2009 9:24 am
by SikoSoft
Since I will assume you want to do this in PHP, you should probably use fsockopen:

http://se2.php.net/fsockopen

Re: how to send request to an ip address - urgent

Posted: Wed Sep 09, 2009 9:54 am
by Stoker
or if you have libcurl installed that is an easy way to do post and stuff