-
Notifications
You must be signed in to change notification settings - Fork 78
HTTP Protocol
The HTTP protocol allows for network communications over both HTTP and HTTPS.
The HTTP protocol devicespec is:
N:HTTP://HOST:PORT/PATH/?key=val
Opening an HTTP connection is the same as any other protocol, and is defined here: N: SIO Open
The aux1 value specifies the HTTP mode to use:
| AUX1 | Mode |
|---|---|
| 4 | GET |
| 6 | PROPFIND |
| 8 | PUT |
| 13 | POST |
Currently AUX2 is used to specify the translation mode for CR/LF to EOL. N: AUX2 Values
When GET is specified, the URL is specified entirely in the devicespec, and subsequent reads will return the HTTP body of the request. Once the body has been returned to the Atari, any subsequent reads will return an error 136 (via the STATUS command).
Here is an example which retrieves a copy of the GPL 3.0 license from GNU.ORG over HTTPS, and displays it.
10 DIM A$(128)
11 TRAP 60
20 OPEN #1,4,3,"N:HTTPS://www.gnu.org/licenses/gpl-3.0.txt"
30 INPUT #1,A$
40 ? A$
50 GOTO 40
60 CLOSE #1
70 END
Copyright 2024 Contributors to the FujiNetWIFI project.
Join us on Discord: https://discord.gg/7MfFTvD
- Home
- What is FujiNet?
- The Definition of Done
- Board bring up for FujiNet Platform.IO code
- The Complete Linux CLI Guide
- The Complete macOS CLI Guide
- Development Env for Apps
- FujiNet-Development-Guidelines
- System Quickstarts
- FujiNet Flasher
- Setting up a TNFS Server
- FujiNet Configuration File: fnconfig.ini
- AppKey Registry - SIO Command $DC Open App Key
- CP-M Support
- BBS
- Official Hardware Versions
- Prototype Board Revisions
- FujiNet Development Guidelines
- Atari Programming
- Apple Programming
- C64 Programming
- ADAM Programming
- Testing Plan
- Hacker List
- FujiNet VirtualMachine