The response I get to an LWP request is application/x-www-form-urlencoded is it possible convert the text of this to a hash via some object method?
The response I get to an LWP request is application/x-www-form-urlencoded is it possible convert
Share
VarsinCGIreturns a hash.parametersinPlack::Requestreturns aHash::MultiValueobject, which is actually the appropriate data structure for this.paraminAPR::Request/libapreq2– not quite a Perl hash, but an XS object with attached Magic whose behaviour is close enough.url_params_mixedinURL::Encodeparse_query_stringinCGI::Deurl::XSquery_forminURIserves well, too, in a pinch; and so doesquery_form_hashinURI::QueryParam.Bonus: also see
HTTP::Body::UrlEncoded, as used by Catalyst.