Feature Proposals » Engine::CLI to set request method

Summary

Current State: Developer: Reason: Date: Concerns By: Bug Tracking: Proposed For:
AcceptedProposal HideyoImazu AcceptedBy7DayFeedbackPeriod 2012年12月22日 TWikibug:Item7673 KampalaRelease

Edit Form

CurrentState:
ReasonForDecision:
DateOfCommitment: Format: YYYY-MM-DD
ProposedFor:

Motivation

  • Some operations of some TWiki scripts (e.g. rename action=renameweb) requires the POST request method.
  • There is no way to specify a request method from CLI, hence those scripts cannot be executed from command line. Even the example of running the "save" script from command line on TWikiScripts does not work, which is embarrassing.
  • $request->request_method() returning undef causes a warning.

Description and Documentation

  • Set a request method (GET by default) in the request attribute of an Engine::CLI object.
  • Recognize "-method METHOD" on a command line argument as request method specification. This is in parallel with "-user USER' specifies the user.

Examples

Impact

Implementation

-- Contributors: HideyoImazu - 2012年12月22日

Discussion

Edit | Attach | (削除) Watch (削除ここまで) | Print version | History : r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2015年07月03日 - HideyoImazu
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

AltStyle によって変換されたページ (->オリジナル) /