Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1. www.erlang.org/doc/man/httpc.html , www.erlang.org/doc/man/file.html#write_file-2
2. timer:tc ( www.erlang.org/doc/man/timer .html#tc-1 ) specifically in your case:
timer:tc(httpc, request, [ argument list ] )
3. httpc:request returns data in the following format:
{status_line(), headers(), Body} - respectively, you must match:
{Status, Header, Body} = httpc:request(....),
Body size:
size(Body) - if you are working with binary(),
length(Body) - if you are working with a list
PS Also note item 2.
Learn the language, read manuals. No one will write the working code for you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question