What is MIME type "application/x-openedge"?
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
application/x-openedge designates files that hold source code written in OpenEdge ABL.These files contain instructions that drive business logic within the OpenEdge environment.
They are processed by specialized development tools and runtime systems tailored for OpenEdge applications.
- Main use: Editing and executing OpenEdge ABL source code.
- Enables text editors to apply language-specific syntax highlighting.
- Assists IDEs in code validation and compilation within Progress OpenEdge projects.
- Helps operating systems and servers recognize and correctly handle the file.
For more on OpenEdge and its development ecosystem, visit Progress OpenEdge.
Associated file extensions
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: application/x-openedge
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="application/x-openedge">Download file</a>
Server-side (Node.js)
Setting the Content-Type header in Node.js:
const http = require('http');
http.createServer((req, res) => {
res.setHeader('Content-Type', 'application/x-openedge');
res.end('Content here');
}).listen(3000);
Associated file extensions
FAQs
What is the application/x-openedge MIME type used for?
This MIME type identifies source code files written in OpenEdge ABL (Advanced Business Language), formerly known as Progress 4GL. These files, typically ending in .p, contain business logic and instructions meant to be compiled and run within the Progress OpenEdge platform.
How do I open or edit a file sent as application/x-openedge?
Since these are text-based source files, you can view them in generic editors like Notepad++, VS Code, or Sublime Text. For actual development and compilation, use the official Progress Developer Studio for OpenEdge (based on Eclipse).
Can web browsers execute application/x-openedge files?
No, web browsers like Chrome or Firefox cannot execute OpenEdge code. If a server sends a file with this MIME type, the browser will usually trigger a file download dialog rather than trying to display or run the content.
How do I configure Apache to serve .p files with this MIME type?
You can add the directive AddType application/x-openedge .p to your httpd.conf or .htaccess file. However, ensure you actually want to allow users to download raw source code before enabling this.
Are there security risks in serving files with this MIME type?
Yes, exposing .p files via a web server allows the public to view your proprietary source code and internal logic. It is standard practice to keep these files outside the public web root and only expose the application interface or compiled output.
Why is my .p file identified as Pascal source code instead?
The .p extension is ambiguous and is also commonly used for Pascal programming source code. If the file does not contain OpenEdge ABL syntax, it might be a Pascal file (MIME type text/x-pascal) or a Python pickle file.
What does the 'x-' prefix mean in application/x-openedge?
The x- prefix indicates that this is a non-standard or vendor-specific MIME type, not registered in the official IANA public registry. It is used privately within the OpenEdge ecosystem to distinguish ABL files from other text files.
General FAQ
What is a MIME type?
A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.
MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.
MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.
How do I find the MIME type for a file?
You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.
Why are multiple MIME types listed for one extension?
Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.