You are here: Re: sending an http request with php « PHP Programming Language « IT news, forums, messages
Re: sending an http request with php

Posted by Sjoerd on 01/09/06 13:30

What you specify is a HTTP response. A HTTP request would start with:
POST /foo.html HTTP/1.1.

To do such a request, open a socket using fsockopen and fwrite the
request to it. Alternatively, you may use Curl
(http://www.php.net/curl) to do a request with specified POST data.

To make a response such as that you have written, you can just use
echo() and header() to get what you want.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация