English 中文(简体)
垃圾处理
原标题:Parse yaws get query

这一坠毁事件

out(A) ->
    io:format("~wqqq12", yaws_api:queryvar(A, "id"), yaws_api:parse_query(A)),

with this

Reason: {function_clause,
            [{io,request,
                 ["~wqqq12",{format,undefined,[{"id","F1D79543E9E6583B"}]}]},

但很显然,“id”存在于盘问中。 为什么它会使之陷入困境?

编辑:

And query: *.yaws?id=F1D79543E9E6583B

编辑2:

对误导表示担忧,但一是使用向浏览器发送价值的形式,其意图错误。 我不禁要问,为什么在形式上的第二个论点成为“未界定的”。

问题回答

你们叫io:错失。 正确的是:

io:format(Format, ListOfParams)

在<代码>Format/code>上,斜体和 清单OfParams是一份拟用的术语清单。

Check the io:format/2 manual for more details.





相关问题
Comparison among NIO webservers [closed]

We need to put in our architecture a server for streaming contents to (potentially) millions of phones. Here the architects and operations people know only about Java, but I d really to propose ...

yaws and erlang beam files in ebin

I am having problems when i have integers and float numbers in my form posts and receive these in my ebin file where i have beam files. Hope someone can help me. npower.yaws <erl> kv(K,L) -...

How to set up yaws-1.89 in ubuntu?

I need help with setting up yaws-1.89 in ubuntu. This is the error I get: =INFO REPORT==== 3-Dec-2010::16:52:40 === Yaws: Using config file /home/hudson2010/yaws.conf =ERROR REPORT==== 3-Dec-2010::...

Yaws and PUT requests

I just started working with Yaws to try to create some simple RESTful web services, however I ran into an unexpected issue: I can t seem to access my data when I do a PUT request. When I try to use ...

Erlang s maximum number of simultaneous open ports?

Does the erlang TCP/IP library have some limitations? I ve done some searching but can t find any definitive answers. I have set the ERL_MAX_PORTS environment variable to 12000 and configured Yaws to ...

How do I disable debug checks in yaws?

When i start yaws (yaws -i --conf config/yaws.conf) i get this line in the output: Running with debug checks turned on (slower server) It depends on the "-i" option? Or where did i turned on debug ...

Mochiweb : Reading a file as it is uploaded

I want to be able to read a file just as it is being uploaded by the user, i.e. I want to read the incoming stream of bytes from the user s browser.. Is that possible with Mochiweb? If not, where do I ...

热门标签