You are here: Re: Post query ending up in $_GET? « PHP Programming Language « IT news, forums, messages
Re: Post query ending up in $_GET?

Posted by Janwillem Borleffs on 09/28/39 11:37

Ian Collins wrote:
> I'm not sure if I've overlooked a config option, but the following
> HTTP POST request gives an empty $_POST array and $_GET['fred']=42...
>
> HTTP POST /js/test/testRequest.php?fred=42 HTTP/1.1
>

Search google for info about the HTTP protocol. A POST request should look
something as follows:

POST /js/test/testRequest.php HTTP/1.1
Host: hostname.com
Content-Type: application/x-www-form-urlencoded
Content-Length: <length of the string 'fred=42'>

fred=42


JW

 

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

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