473,390 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

$_POST empty, $HTTP_RAW_POST_DATA filled

We receive a POST message being a multipart/mixed type. The
$HTTP_RAW_POST_DATA shows it perfectly. However, I expected the $_POST to be
filled as well, which is empty. We're using php 4.3.3.

Any ideas?
Thx.
Marc


Jul 17 '05 #1
4 13983
Hi,

Marc Lambrichs wrote:
We receive a POST message being a multipart/mixed type. The
$HTTP_RAW_POST_DATA shows it perfectly. However, I expected the $_POST to be
filled as well, which is empty. We're using php 4.3.3.


AFAIK, $_POST only gets filled if the POST type is
"application/x-www-form-urlencoded". Otherwise you have to decode it by
hand.

Luke

Jul 17 '05 #2

"Marc Lambrichs" <ma***@melange-it.nl> wrote in message
news:3f***********************@news.xs4all.nl...
We receive a POST message being a multipart/mixed type. The
$HTTP_RAW_POST_DATA shows it perfectly. However, I expected the $_POST to be filled as well, which is empty. We're using php 4.3.3.

Any ideas?
Thx.
Marc


I've not tried that yet but if I were I'd shove your form data through to
phpinfo(); and check where it turns up there...
Jul 17 '05 #3
"Marc Lambrichs" <ma***@melange-it.nl> wrote
in message news:<3f***********************@news.xs4all.nl>...

We receive a POST message being a multipart/mixed type. The
$HTTP_RAW_POST_DATA shows it perfectly. However, I expected
the $_POST to be filled as well, which is empty.


What about $_FILES?

Cheers,
NC
Jul 17 '05 #4
Marc Lambrichs wrote on Monday 06 October 2003 20:11:
We receive a POST message being a multipart/mixed type. The
$HTTP_RAW_POST_DATA shows it perfectly. However, I expected the $_POST to
be filled as well, which is empty. We're using php 4.3.3.


Just a side note - if you are using 4.3.3, it's better to use php://input
instead of $HTTP_RAW_POST_DATA. See

http://us4.php.net/wrappers.php
--
Business Web Solutions
ActiveLink, LLC
www.active-link.com/intranet/
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Joshua Beall | last post by:
Hi All, I cannot turn off magic quotes, since I am just leasing space from a hosting company, and they determine the magic_quotes settings. I realize in retrospect that using a .htaccess file...
10
by: Jack | last post by:
How would I add a variable that I will assign to a list of $_POST variables that I extract from a form? My form passes a value for $q. That works fine. What I want to do is run an if/else on it...
4
by: Kevin | last post by:
I am having problems in my php code. I am relatively new to php but I know some basics. This is the problem: when i try to echo some information that is typed into form back to the screen i...
7
by: Dan | last post by:
I was trying to troubleshoot a login page that doesn't work - it keeps saying the login/password is missing - when my tracing discovered this peculiar behavior. register_globals is off, so at...
14
by: billy.becker | last post by:
I need to save a wav file that is HTTP POSTed to a php page. What does PHP5 do automatically to a POSTed variable when it puts it in the $_POST superglobal array? I haven't been able to find any...
5
by: lorenzdominic_ | last post by:
Hi Recently I have been developing a form that uses the _POST variable. Today the _POST variable was empty everytime I submitted my form however I changed the post method to be GET and the...
21
tpaine
by: tpaine | last post by:
Let me preface this by saying that this is most certainly not a code issue but a config issue. I have been able to implement the code fine on my live server, this problem only occurs on my localhost....
2
by: keeps21 | last post by:
I have a script that recieves an id number via the address bar when a link is clicked. ie . index.php?id=1 if the link was for the story whose ID is 1. My script checks if a user is logged in,...
2
by: flydev | last post by:
Hello, I have very little knowledge when it comes to SOAP, but a developer I'm working with says it will make things easier when passing data to/from client software and the mySQL database. Anyhow, I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.