| verzia 1.4, 2001/11/12 16:08:00 |
verzia 1.5, 2001/11/12 20:19:10 |
| Riadok 101 int sendsms(char *str, int show_info) |
|
| Riadok 101 int sendsms(char *str, int show_info) |
|
| http_request(HTTP_GET, "/", "www.mtnsms.com", NULL); |
http_request(HTTP_GET, "/", "www.mtnsms.com", NULL); |
| http_request(HTTP_POST, "/session.asp", "www.mtnsms.com", |
http_request(HTTP_POST, "/session.asp", "www.mtnsms.com", |
| "Content-type: " |
"Content-type: " |
| "application/x-www-form-urlencoded; " |
"application/x-www-form-urlencoded\r\n" |
| //"Content-length: 77\r\n\r\n%s", |
//"Content-length: 77\r\n\r\n%s", |
| "Content-length: %d\r\n\r\n" |
"Content-length: %d\r\n\r\n" |
| "username=%s&" |
"username=%s&" |
| Riadok 110 int sendsms(char *str, int show_info) |
|
| Riadok 110 int sendsms(char *str, int show_info) |
|
| strlen(my_getlogin(0)) + |
strlen(my_getlogin(0)) + |
| strlen(my_getpass(0)) + 49, |
strlen(my_getpass(0)) + 49, |
| my_getlogin(1), my_getpass(1)); |
my_getlogin(1), my_getpass(1)); |
| http_request(HTTP_GET, "/sms/ssms.asp", "www4.mtnsms.com", NULL); |
//http_request(HTTP_GET, "/sms/ssms.asp", "www4.mtnsms.com", NULL); |
| http_request(HTTP_POST, "/sms/ssms.asp", "www4.mtnsms.com", |
http_request(HTTP_GET, "/sms/ssms.asp", get_last_hostname(), |
| |
NULL); |
| |
http_request(HTTP_POST, "/sms/ssms.asp", get_last_hostname(), |
| "Content-type: " |
"Content-type: " |
| "application/x-www-form-urlencoded; " |
"application/x-www-form-urlencoded; " |
| "Content-length: %d\r\n\r\n%s", |
"Content-length: %d\r\n\r\n%s", |