Tags:
create new tag
, view all tags

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

TopicSummary:
CurrentState:
CommittedDeveloper:
ReasonForDecision:
DateOfCommitment:   Format: YYYY-MM-DD
ConcernRaisedBy:
BugTracking:
OutstandingIssues:
RelatedTopics:
InterestedParties:
ProposedFor:
TWikiContributors:
 

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
 
  • Learn about TWiki  
  • Download TWiki
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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.