|
Iniciado por FILIPPO SISTI, 11,ene. 2016 15:36 - 5 respuestas |
| |
| | | |
|
| |
Publicado el 11,enero 2016 - 15:36 |
Hello,
i need to create xml file from an awp page via procedure. I need to feed the page with some parameters, that can be very long. Is it safe to put the parameter content in the request?
e.g:
www.mydomain.net/myapp/function.awp…[VERY_LONG_TEXT]&par2=someValue
thank you |
| |
| |
| | | |
|
| | |
| |
Publicado el 11,enero 2016 - 17:44 |
Hi
there is a size limit to that kind of thins, so the right way to do it is to call the awp page in POST mode instead of get, and use pageparameter with the post syntax to get the parameter content
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
On 1/11/2016 9:36 AM, FILIPPO SISTI wrote:
Hello, i need to create xml file from an awp page via procedure. I need to feed the page with some parameters, that can be very long. Is it safe to put the parameter content in the request? e.g: www.mydomain.net/myapp/function.awp…[VERY_LONG_TEXT]&par2=someValue thank you |
| |
| |
| | | |
|
| | |
| |
Publicado el 12,enero 2016 - 08:57 |
tell me if i am right.
i can perform a POST request (feeding xml data) with
curl -X POST -d @filename.xml http://www.example.com/app/page1.awp --header "Content-Type:text/xml"
and retrieve my content with WLanguage function PageParameter("P1") on awp page server side (P! is the first parameter on awp page) .
I did use CURL because i need to integrate toward a legacy application with a few methods to manage http requests. Curl works fine. |
| |
| |
| | | |
|
| | |
| |
Publicado el 12,enero 2016 - 13:21 |
Hi,
On 1/12/2016 2:57 AM, FILIPPO SISTI wrote:
Not webdev, so no idea
and retrieve my content with WLanguage function PageParameter("P1") on awp page server side (P! is the first parameter on awp page) .
No, look at the help. There is a SPECIAL syntax for post
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
I did use CURL because i need to integrate toward a legacy application with a few methods to manage http requests. Curl works fine. |
| |
| |
| | | |
|
| | |
| |
Publicado el 12,enero 2016 - 15:43 |
| |
| |
| | | |
|
| | |
| |
Publicado el 12,enero 2016 - 23:54 |
Hi
YES, it IS the help page for pageparameter... and if you READ IT, you'll see that there are SEVERAL syntaxes, and one of them is for the POST mode
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
On 1/12/2016 9:43 AM, FILIPPO SISTI wrote:
|
| |
| |
| | | |
|
| | | | |
| | |
|