Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:58 AM.


Copyright © 1999-2023 Kinook Software, Inc.