![]() |
HTTP Post in 7.5b
I have setup an HTTP action
Put: Post form data Get: Get to macro URL: myurl.php Macro: PostResponse Do not escape special characters: not checked Transfer type: ASCII Form Data: action=3&program_date=07/06/2010 Logging: All + Hex dump -- The php script I'm posting to is not getting the Form Data. The Hex dump is not showing the Form Data. Any suggestions? [correction] I didn't look high enough, the data did get sent. The PHP script isn't seeing the data though. |
1 Attachment(s)
I'm not sure. Testing the attached sample w/ 7.5b on Windows XP SP3 produces the expected output of
Echoing submitted form data
Processed 2010-07-06T16:01Z http://www.kinook.com/Forum/showthre...?threadid=3044 |
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 Code:
HTTP/1.1 200 OK Code:
POST http://powerchurchsoftware.com/test/index.php HTTP/1.1 Code:
|
Add a value that requires encoding (spaces or special characters, i.e., action=3&version=A0
&x=a b). The version of the third-party networking component used in v7 only adds the Content-Type header if there are values that require encoding. |
OK, added an extra variable and the array is filled in.
Thank you. |
Also, in v7.6, you can explicitly set header values (Options tab).
|
I like that idea better.
Thanks for the new release. |
All times are GMT -5. The time now is 02:38 PM. |
Copyright © 1999-2023 Kinook Software, Inc.