What problem does it solve?
This Skill helps you implement server-rendered web UIs inside Protheus (ADVPL ASP) without a separate web app stack, so you can respond to HTTP requests by generating HTML from Protheus logic.
Core Features & Use Cases
- Server-rendered ADVPL Web pages (.APH): Mix HTML with ADVPL blocks (
<% ... %>) and inline output (<%= ... %>) to generate dynamic content.
- HTTP input handling: Read GET/POST parameters, manage session state, access cookies, and control response headers/content type.
- AppServer Webex threading setup: Configure
HTTPSERVER + JOB_WEBEX in appserver.ini to serve requests with a pooled worker model.
- Upload/Download support: Handle multipart uploads and stream files securely for user workflows.
- Security guidance: Prevent common issues like XSS (escape user input) and path traversal (validate file paths before sending).
- Scope boundary: Use this for server-rendered UI; for REST/JSON use the related REST-oriented skill
advpl-webservice.
Quick Start
Tell the skill to show how to create a simple .APH page that includes apwebex.ch, reads a querystring with HTTPGet("cod"), and outputs an HTML response setting an explicit content-type.