hi all i tried to authenticate the received request from erlang<br>i recieved the follwing binary.<br><<"POST / HTTP/1.1\r\nCookie: x=y\r\nUser-Agent: Jakarta Commons-HttpClient/3.0.1\r\nHost: 127.0.0.1:9000\r\nContent-Length: 34\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\nUserName=prasantha&Password=abc123">>.<br>
** exception error: no match of right hand side value <<"POST / HTTP/1.1\r\nCookie: x=y\r\nUser-Agent: Jakarta Commons-HttpClient/3.0.1\r\nHost: 127.0.0.1:9000\r\nContent-Length: 34"...>><br><br><br>
i can split "POST / HTTP/1.1\r\nCookie: x=y\r\nUser-Agent: Jakarta
Commons-HttpClient/3.0.1\r\nHost: 127.0.0.1:9000\r\nContent-Length:
34\r\nContent-Type:
application/x-www-form-urlencoded\r\n\r\nUserName=prasantha&Password=abc123">>.<br>
** exception error: no match of right hand side value <<"POST /
HTTP/1.1\r\nCookie: x=y\r\nUser-Agent: Jakarta
Commons-HttpClient/3.0.1\r\nHost: 127.0.0.1:9000\r\nContent-Length: 34" using <br>regexp:split(Request, "UserName=")<br><br>request id the recived binary without the << and >>.<br><br>but i cannot filter the the string without << >><br>
signs.can any body help me to filter the string from the <<"string">>.<br><br><br>thanking in advance.<br>prasantha<br><br>