why this error?

Wes James comptekki@REDACTED
Mon May 3 18:05:01 CEST 2010


{ok,{Status,Header,Body}}=http:request(URL).
** exception error: no match of right hand side value
{ok,{{"HTTP/1.1",200,"OK"},

[{"connection","Keep-Alive"},

{"date","Mon, 03 May 2010 15:57:33 GMT"},
                                                            {"server", "...."},

{"content-length","202"},

{"content-type","text/html; charset=UTF-8"},

{"set-cookie","SESSID=00000011111"},

{"keep-alive","timeout=15, max=100"}],
                                                           "\n<HTML>...."}}

It looks right to me but it is throwing a right hand not match error.  Why?

There is an "ok" which matches ok on the left.

There is a next section of { {}, [], "" }  which seems to match
{Status,Header,Body} of three items.

What am I missing?

-wes


More information about the erlang-questions mailing list