View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
Thank you... The validation is needs to return the information posted by Paypal to our handler (with one identifier added) in a return post.
 
Paypal has not been very forthcoming except for what is already published on their website. There is no raw source page to view. There are a few coding examples in PHP, etc. Nothing that shows the final output though.
 
However, your example helps. I'm assuming head and body tags, etc. are unecessary. A POST is read continuously though so is a length identifier called for? Or might there be an end of transmission marker?
 
It might very well be that a simple query string built from the cgi fields list and sent back after a ContentType identifier as application/x-www-form-urlencoded will work. I'll give it a try.
 
Thanks again for your support on a terrific product which has served us well for several years now.
Sent by FoxWeb Support on 06/30/2004 08:43:38 PM:

You are not providing enough information for us to be able to help you. Ideally, the other party will provide you with a sample page that you could use as a guideline.

In general, post data looks similar to a query string:

Name1=value1&name2=value2&name3=value3...

All name and value strings are URLEncoded.  It's possible that this is all you need to do:

Html_out = 'application/x-www-form-urlencoded' + CHR(10) + CHR(10) + ;

    URLEncode(name1) + '=' + URLEncode(value1) + '&' + ;

    Other name/value pairs...

There may be other headers that are necessary for this, so you should really ask for a sample page.

FoxWeb Support Team
support@foxweb.com email

Sent by Steve Moore on 06/30/2004 01:08:15 PM:
I need to construct a response string using the old html_out that calls a post method on a remote server. In other words, I need to format a return page that is the equivalent of a post method submit form (without requiring a submit button to be pressed by the user)
 
I Know that the ContentType = "application/x-www-form-urlencoded" should be in the beginning of the return string. Can someone point me to the information on how this return string should look?