xrl/libm2handler — Issue #1: extract URL Params from HTML Form
Author: zenwong
Created: 2012-02-10 06:30:24+00:00
State: open

Hi there, I've been trying to extract the url parameters from a HTML form with your library. I am ale to get extract the params using jansson to extract the QUERY param from the return req->headers. So when I do curl -X POST 'localhost/form?title=TITLE&desc=DESC&date=DATE' i am able to get back title desc and date. But when I submit my html form it doesn't seem to pick up the query params, not sure what I'm supposed to put in the html form action.

the html form

the netstring
======NETSTRING======
54c6755b-9628-40a4-9a2d-cc82a816345e 2 /form 622:{"PATH":"/form","x-forwarded-for":"127.0.0.1","cache-control":"max-age=0","origin":"http://dev.l","content-type":"application/x-www-form-urlencoded","accept-language":"en-US,en;q=0.8","accept-encoding":"gzip,deflate,sdch","connection":"keep-alive","content-length":"72","referer":"http://dev.l/","accept-charset":"ISO-8859-1,utf-8;q=0.7,*;q=0.3","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7","host":"dev.l","METHOD":"POST","VERSION":"HTTP/1.1","URI":"/form","PATTERN":"/form"},72:title=sdgfsdfg&desc=fdsgsdf&tDate=10-1-2012,
=====================

as you can see theres no QUERY field.