View Single Post
  #3  
Old 07-06-2010, 05:48 PM
TracyP TracyP is online now
Registered User
 
Join Date: 12-18-2006
Posts: 14
I downloaded Fiddler to discover the problem. It appears when posting data the Content-Type header needs to be set to 'application/x-www-form-urlencoded'.

This worked in the 6.x version I was using prior to upgrading the system and software.


Watching what is posted via VBP
Code:
POST http://powerchurchsoftware.com/test/index.php HTTP/1.1
Host: powerchurchsoftware.com
Content-Length: 19

action=3&version=A0
returns
Code:
HTTP/1.1 200 OK
Date: Tue, 06 Jul 2010 22:34:18 GMT
Server: Apache
X-Powered-By: PHP/5.2.13
Vary: Accept-Encoding
Content-Length: 13
Content-Type: text/html

array(0) {
}
Changing the post to this:
Code:
POST http://powerchurchsoftware.com/test/index.php HTTP/1.1
Host: powerchurchsoftware.com
Content-Length: 19
Content-Type: application/x-www-form-urlencoded

action=3&version=A0
Properly returns the array
Code:
HTTP/1.1 200 OK
Date: Tue, 06 Jul 2010 22:45:51 GMT
Server: Apache
X-Powered-By: PHP/5.2.13
Vary: Accept-Encoding
Content-Length: 77
Content-Type: text/html

array(2) {
  ["action"]=>
  string(1) "3"
  ["version"]=>
  string(2) "A0"
}
Reply With Quote