Reply to Re: strange php behavior downloading html

Your name:

Reply:


Posted by Chuck Renner on 10/28/06 13:31

Rik wrote:
> First of all: no binaries with your post please.

sorry...

> Second:
> HTTP/1.1 302 Found
> Date: Fri, 27 Oct 2006 10:17:31 GMT
> Server: Apache
> X-Powered-By: smugmug/1.2.0
> Set-Cookie: SMSESS=879c1d8a0378b8304671becdf6ff28c8; path=/;
> domain=.smugmug.com
> Cache-Control: private, max-age=1, must-revalidate
> Pragma:
> Set-Cookie: Template=7; expires=Sun, 26-Nov-2006 10:17:31 GMT; path=/;
> domain=.smugmug.com
>
> file_get_contents() will NOT honour these Set-Cookie's whatsoever. It isn't
> meant to do that.
>
> If you want to do this, use cURL.
> This is not a bug, this is a documented limitation.

Thanks. I had already spent hours in google and php documentation
before posting, and had not found that. I did not find any php
documentation on file_get_contents limitations and Set-Cookie. I'll
start looking for cURL documentation now.

Thanks again for pointing me in the right direction.

- Chuck Renner

[Back to original 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

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