6
APPENDIX
19
*
e x p i r e d a t e
:
2014 -05 -01 16
:
31
:
06 GMT
20
*
i s s u e r
:
C = US ; ST = M i n n e s o t a ; L = M i n n e a p o l i s ; CN = r c e l l . e x a m p l e . com
21
*
SSL c e r t i f i c a t e v e r i f y r e s u l t
:
s e l f s i g n e d c e r t i f i c a t e ( 1 8 )
,
c o n t i n u i n g a n y w a y .
22
> GET / api / l o g i n ? u s e r n a m e = a d m i n & p a s s w o r d = a d m i n H T T P / 1 . 1
23
> User - A g e n t
:
c u r l / 7 . 2 2 . 0 ( x86_64 - pc - linux - gnu ) l i b c u r l / 7 . 2 2 . 0 O p e n S S L / 1 . 0 . 1 z l i b / 1 . 2 . 3 . 4
l i b i d n / 1 . 2 3 l i b r t m p / 2 . 3
24
> H o s t
:
1 9 2 . 1 6 8 . 2 . 1
25
> A c c e p t
:
*/*
26
>
27
< H T T P / 1 . 1 200 OK
28
< Set - C o o k i e
:
t o k e n = 5 8 1 0 A 5 7 D F 8 7 3 2 8 9 5 1 F F 1 9 0 1 0 2 7 A 0 9 A 7 4 ; Max - Age = 3 0 0 ; P a t h =/; S e c u r e
29
< Cache - C o n t r o l
:
no - c a c h e
30
< Content - t y p e
:
a p p l i c a t i o n / j s o n
31
< T r a n s f e r - E n c o d i n g
:
c h u n k e d
32
< D a t e
:
Wed
,
15 Jan 2 0 1 4 14
:
56
:
09 GMT
33
< S e r v e r
:
r c e l l
34
<
35
{
36
" c o d e "
:
200
,
37
" r e s u l t "
:
{
38
" a d d r e s s "
:
" 1 9 2 . 1 6 8 . 2 . 1 0 3 "
,
39
" p e r m i s s i o n "
:
" a d m i n "
,
40
" p o r t "
:
" 4 3 5 1 6 "
,
41
" t i m e s t a m p "
:
"14
:
56
:
9
:
3 6 3 "
,
42
" t o k e n "
:
" 5 8 1 0 A 5 7 D F 8 7 3 2 8 9 5 1 F F 1 9 0 1 0 2 7 A 0 9 A 7 4 "
,
43
" u s e r "
:
" a d m i n "
44
}
,
45
" s t a t u s "
:
" s u c c e s s "
46
}
47
* C o n n e c t i o n #0 to h o s t 1 9 2 . 1 6 8 . 2 . 1 l e f t i n t a c t
48
* C l o s i n g c o n n e c t i o n #0
49
* S S L v 3
,
TLS a l e r t
,
C l i e n t h e l l o (1)
:
6.3.2
Using Curl to enable PPP
1
c u r l - - s s l v 3 - k - X PUT - H " Content - T y p e
:
a p p l i c a t i o n / j s o n " - d ’
{
2
" e n a b l e d "
:
t r u e
,
3
}
’ h t t p s
:
/ / 1 9 2 . 1 6 8 . 2 . 1 / api / ppp ? t o k e n = 2 4 4 2 C B 0 C B 6 0 B 2 E E 9 F 5 A 3 5 D F 5 E D 8 C 3 3
Curl result:
1
{
2
" c o d e "
:
200
,
3
" s t a t u s "
:
" s u c c e s s "
4
}
Multi-Tech Systems, Inc. MultiConnect
R
rCell API Developer Guide
35