Re: creating a PHP wrapper script?
| From: | Nathan Rixham | Date: | Sun, 25 Apr 2010 18:06:48 +0000 |
| Subject: | Re: creating a PHP wrapper script? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304563@lists.php.net to get a copy of this message | ||
Peter Lind wrote:
> php.net/curl should be able to do what you want.
+1
> file_get_contents with a proper stream context should also work (have
> a look at functions like
> http://dk.php.net/manual/en/context.http.php
> )
very important to note that file_get_contents uses HTTP 1.0 not 1.1 by
default.
99% of web servers use HTTP 1.1 nowadays.
ps: please don't hook up on the 99%, i don't know the exact figure :p