You are here: Re: getting bad results from fsocketopen « PHP Programming Language « IT news, forums, messages
Re: getting bad results from fsocketopen

Posted by yawnmoth on 11/19/01 11:47

lawrence k wrote:
> If I send this to the server:
>
> POST /errors/index.htm HTTP/1.1
> Host: www.publicdomainsoftware.org
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 1200
> %3C%2Fdiv%3E

Try this, instead:

POST /errors/index.htm HTTP/1.1
Host: www.publicdomainsoftware.org
Content-Type: application/x-www-form-urlencoded
Content-Length: 1200
Connection: close

%3C%2Fdiv%3E

Note how there are two new lines between the last HTTP header and the
actual data. Also... the Content-Length field doesn't look correct.
strlen(urldecode('%3C%2Fdiv%3E')) is definitly not 1200...

 

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

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