HTTP request

Reply

Join Date: Nov 2008
Posts: 3
Reputation: Anjali.want4u is an unknown quantity at this point 
Solved Threads: 0
Anjali.want4u Anjali.want4u is offline Offline
Newbie Poster

HTTP request

 
0
  #1
Nov 28th, 2008
Can someone please tell me how to send a HTTP request through PHP .
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,448
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 135
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso

Re: HTTP request

 
0
  #2
Nov 29th, 2008
Although I don't know anything about it there is a function called http_request(); and the official documentation can be found at http://php.net/manual/kr/function.http-request.php
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: HTTP request

 
0
  #3
Dec 8th, 2008
Originally Posted by cwarn23 View Post
Although I don't know anything about it there is a function called http_request(); and the official documentation can be found at http://php.net/manual/kr/function.http-request.php
Note that this is a pecl extension. You'll have to build it into PHP.

If you need just a simple HTTP Request, you can use file_get_contents().
This makes a HTTP GET Request to the URL you give it (if the http wrapper is enabled allow_url_fopen).

You can also use the curl functions:
http://www.php.net/manual/en/ref.curl.php

Or see the docs on getting remote files:
http://www.php.net/manual/en/features.remote-files.php

For custom HTTP Requests use CURL or you can use fsockopen(), with fread() and fwrite().

Pear also provides a HTTP package:
http://pear.php.net/package/HTTP_Request2
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC