Authors: Vipin Puri [web site: http://picopeta.com], Michael McDaniel [web site: http://autosys.us].
References
Hi, Vipin! Compile the documentation with edoc:file(vipin.erl). and the module as c:c(vipin).
Google server was asking for Content-Length, and did not agree with a 0 Content-Length; see go_a().
Google server also wanted a non-null body; see go_b().
It appears that you found an old post of mine. The extra headers, e.g. REALM, APIVER, were application specific. The application you are using is referenced in the above web page I found googling 'google accounts clientlogin', and those required headers are different. Often server applications will ignore extra headers though they can tend to confuse the human reader (and code maintainer!).| foo/2 | Added for Hynek. |
| go/0 |
Demonstrates 411 Length Required error
Vipin's original |
| go_a/0 |
Demonstrates 411 Length Required error
Michael's test, with Content-Length 0 included |
| go_b/0 |
Demonstrates valid return from Google,
Michael's test again, including Body of non-zero-length, and headers AccountType and Content-Length Though we receive error from Google, it is because of sending wrong _data_ now (bad authentication), not malformed request. |
foo() -> term()
Added for Hynek. foo(X::integer(), Y::integer()) -> true; foo(X::atom(), Y::atom()) -> false;
go() -> {ok, Response}
Demonstrates 411 Length Required error
Vipin's original
go_a() -> {ok, Response}
Demonstrates 411 Length Required error
Michael's test, with Content-Length 0 included
go_b() -> {ok, Response}
Demonstrates valid return from Google,
Michael's test again, including Body of non-zero-length, and headers AccountType and Content-Length Though we receive error from Google, it is because of sending wrong _data_ now (bad authentication), not malformed request.
Generated by EDoc, Oct 28 2007, 12:50:41.