another code sample
Aug. 11th, 2014 06:06 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
def parameters(href): Map[String, String] = href split("\\?",2) toList match { case url::params::Nil => params.split("&") map (_ split "=" toList) collect { case k::v::Nil => k->v } toMap case otherwise => Map.empty }
Or?...
no subject
Date: 2014-08-12 04:31 am (UTC)And I despise the whole Apache HttpClient anyway.
no subject
Date: 2014-08-12 04:34 am (UTC)as for & - this is a valid code block for encoding the ampersand in the parameter name or value.
no subject
Date: 2014-08-12 05:06 am (UTC)no subject
Date: 2014-08-13 01:00 am (UTC):)