Menu

How to get query param values

Help
amiya
2007-12-20
2013-05-15
  • amiya

    amiya - 2007-12-20

    Hi,
    I am using modcpluscplus to implement certain http services. for this i need to parse query param values using the AapacheRequestRec object. I do not see exact methods to get the the query param values, inside the API docs. I can make an attempt to do parsing, but it would lead to issues with Internationalization.

    can someone suggest some better ways

     
    • John K. Sterling

      Hi -

      There is a class that helps with params called request_env.  If you pass it a request you can use the [] operator to deference a param by name.  Let me know if this doesn't work for you.

       
    • amiya pathak

      amiya pathak - 2008-01-29

      Thanks, This worked...but is there any similar apis to get uploaded files via http form post. I was trying it, and its not part of the env hash. and not surprising, because it only returns string responses.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.