forked from bluszcz/libplurc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi.h
19 lines (16 loc) · 1.04 KB
/
api.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define PLURK_HOST "www.plurk.com"
#define PLURK_PORT "80"
#define HTTP_REQUEST_AUTH "GET /admin/ HTTP/1.0\r\n\r\n"
#define HTTP_REQUEST_INIT "GET /config.h HTTP/1.0\r\n\r\n"
#define HTTP_REQUEST_FINISH "GET / HTTP/1.0\r\n\r\n"
#define HTTP_REQUEST_LOGIN "GET /API/Users/#%s HTTP/1.0\r\nHost: %s\r\nCookie: %s\r\n\r\n"
#define HTTP_REQUEST_LOGOUT "GET /API/Users/logout%s HTTP/1.0\r\nHost: %s\r\nCookie: %s\r\n\r\n"
#define HTTP_REQUEST_ADD "GET /API/Timeline/plurkAdd%s HTTP/1.0\r\nHost: %s\r\nCookie: %s\r\n\r\n"
#define HTTP_REQUEST_RESPS_GET "GET /API/Responses/get%s HTTP/1.0\r\nHost: %s\r\nCookie: %s\r\n\r\n"
#define HTTP_REQUEST_RESPS_RADD "GET /API/Responses/responseAdd%s HTTP/1.0\r\nHost: %s\r\nCookie: %s\r\n\r\n"
#define HTTP_REQUEST_OPROFILE_GET "GET /API/Profile/getOwnProfile%s HTTP/1.0\r\nHost: %s\r\nCookie: %s\r\n\r\n"
#define HTTP_REQUEST_PPROFILE_GET "GET /API/Profile/getPublicProfile%s HTTP/1.0\r\nHost: %s\r\nCookie: %s\r\n\r\n"
#define BUFRECVSIZE 1024
#define REQUEST_SIZE 1024
#define SESSION_SIZE 512
#define RESPONSE_SIZE 40960