patchGNU Octave - Patches: patch #10267, [cgi] I want to add...


patch #10267: [cgi] I want to add "application/json" support to cgi, and this may need a new forge package - "requests"

Submitter:  Glite <linuxbckp>
Submitted:  Tue 19 Jul 2022 01:05:54 AM UTC
Category:  Forge : new feature Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Tue 19 Jul 2022 01:05:54 AM UTC, original submission:  

I want to add "application/json" support to cgi, and I have some uncertain topics to discuss:

1. I checked the recent code and didn't find where the if-else logic of the enctype attribute is. Is the code treats all requests as "application/x-www-form-urlencoded" but makes no logical judgement?

2. The "application/json" needs the body of the requests contains JSON string, but "application/x-www-form-urlencoded" doesn't. So the requests should be editable before they are sent to the server. This feature needs some fonctions to implement it. I will create a new forge package called "requests" for editing and/or processing requests. Is there any better advices?

Glite <linuxbckp>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by linuxbckp (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code