Reply to Re: strange php behavior downloading html

Your name:

Reply:


Posted by Rik on 10/27/06 10:22

Chuck Renner wrote:
> <snip file_get_contents() behaves unexpected for the OP>

First of all: no binaries with your post please.

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.
--
Rik Wasmus

[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

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