| |
Amee Developer |
Hi J.J.
I tried that request, and got the same result as you. This one works:
POST /auth HTTP/1.0
username=********&password=********
the only difference is that the Host header is stage.co2.dgen.net rather
Regards,
Thade
2009/3/13 jj <jjshea...@gmail.com>
> I'm developing a website project using PHP, and the http request code
> $header = POST /auth HTTP/1.0\nAccept: application/xml\nHost:
> I got this code from the php with sockets example in the developers
> This code is creating the connection between my website and the AMEE
> How do I change this code to get the authorisation token from the AMEE
> Thanks,
Accept: application/xml
Host: stage.co2.dgen.net
Content-Type: application/x-www-form-urlencoded
Content-Length: 35
than http://stage.co2.dgen.net.
> I have for getting authorization from the AMEE database is:
> http://stage.co2.dgen.net\nContent-Type: application/x-www-form-
> urlencoded\nContent-Length: 36\n\nusername=/**username**/&password=/
> **password**/;
> $s = socket_create(AF_INET, SOCK_STREAM, 0);
> $z = socket_connect($s, "193.34.29.200", $port);
> socket_write($s, $header, strlen($header));
> area of the AMEE website.
> website, but the http request above is causing a 400 bad request
> error.
> website?
> J.J.