File: sprintpcs.sms

package info (click to toggle)
smssend 3.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,232 kB
  • ctags: 114
  • sloc: sh: 11,314; ansic: 2,368; perl: 104; makefile: 58
file content (33 lines) | stat: -rw-r--r-- 1,051 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#messaging.sprintpcs.com
#Version 1.20
#Jeff McCune <mccune@ling.ohio-state.edu>
#Error codes :
# 1 -> Not subscribed to SMS
# 2 -> General Error sending message
# Implemented on November 18 2002

NbParams 3
%Number : The phone number should be 10 digits
%CallbackNumber : Your phone number - 1 or more digits
%Message Size=160 Convert : Your message

# Initial connection...  We need a jsessionid value from this
GetURL http://messaging.sprintpcs.com/
Go

# Sending message
# The first section GetURL will bounce to the right page, most likely
# http://messaging.sprintpcs.com/sml/guestCompose.do and as such we
# RTFormAction on part2 rather than part1
PostURL \%RTFormAction-2-0%
PostData post=Send&recipientsAsString=\%Number%&mobileNumber=\%Number%&body=\%Message%&counter=160&callback=\%CallbackNumber%

Search does not subscribe to this messaging
 ErrorMsg 1 The number supplied does not subscribe to SMS
ElseSearch Message sent successfully
 PrintMsg  Your message has been sent succesfully
Else
 ErrorMsg 2 General Error sending message
GO