how to send request to an ip address - urgent

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

how to send request to an ip address - urgent

Post 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
User avatar
jazz090
Forum Contributor
Posts: 176
Joined: Sun Apr 12, 2009 3:29 pm
Location: England

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

Post by jazz090 »

well depends if you want to use server side or client side
SikoSoft
Forum Newbie
Posts: 6
Joined: Wed Sep 09, 2009 9:16 am

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

Post by SikoSoft »

Since I will assume you want to do this in PHP, you should probably use fsockopen:

http://se2.php.net/fsockopen
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

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

Post by Stoker »

or if you have libcurl installed that is an easy way to do post and stuff
Post Reply