I am familiar with many of the great new features in symfony routing -
the ability to route according to the request method, for example. Is
there any functionality for routing according to a POST request
parameter?

The reason I inquire about this feature: we are working to implement
the Open Archives Initiative Protocol for Metadata Harvesting (OAI-
PMH) - http://qubit-toolkit.org/wiki/index.php?title=OAI_harvesting

We decided to create an "oai" module, and actions for each OAI "verb"
- this seemed like a natural organization in symfony - please correct
me at this point if you recommend another organization?

We hoped to use the symfony routing system to route OAI verbs to their
corresponding actions. However, I discovered that OAI supports
specifying the verb as a POST request parameter:
http://www.openarchives.org/OAI/openarchivesprotocol.html#HTTPRequestFormat

So to work, I would need a route which matched the "verb" parameter of
a POST request, and routed to the corresponding action. Is this
possible? I tried adding to my routing.yml:

oaiIdentify:
  url: /oai
  param: { module: oai }
  requirements: { verb: identify }

- however this failed to match a POST request sent to "http://
localhost/.../oai" with "verb=identify" parameter.

Alternatively, do you suggest another strategy for matching OAI
requests with corresponding implementation?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to