This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AccessKeyId LTAIL****N6gpzW6 | |
SignatureVersion 1.0 | |
SignatureMethod HMAC-SHA1 | |
Format JSON | |
Action SendSms | |
Version 2017-05-25 | |
RegionId cn-hangzhou | |
SignName **** | |
TemplateCode **** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "tbox/tbox.h" | |
int main() { | |
tb_init(tb_null, tb_null); | |
int i = 10; | |
while (i --> 1) { | |
tb_http_ref_t http = tb_http_init(); | |
tb_http_ctrl(http, TB_HTTP_OPTION_SET_COOKIES, tb_cookies()); | |
tb_http_ctrl(http, TB_HTTP_OPTION_SET_METHOD, TB_HTTP_METHOD_GET); | |
tb_http_ctrl(http, TB_HTTP_OPTION_SET_URL, "http://google.com"); |