Pages: [1]   Go Down
Author Topic: Receive POST /getvalue  with 28j60 ethershield?  (Read 1581 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello! I have the EtherShield (ENC28J60).
I wonder if I can use it to receive POST /getvalue
"HTTP/1.1  (application/x-www-form-urlencoded)"

I Wireshark it look like this:
Code:
HTTP      POST /getvalue HTTP/1.1  (application/x-www-form-urlencoded)

0000  54 55 58 10 00 24 00 1f  3c 87 01 86 08 00 45 00   TUX..$.. <.....E.
0010  00 d8 3b 34 40 00 80 06  3d 3e c0 a8 00 4e c0 a8   ..;4@... =>...N..
0020  00 0f c6 0f 00 50 75 7f  ee 10 00 00 0e 01 50 18   .....Pu. ......P.
0030  42 00 a5 93 00 00 50 4f  53 54 20 2f 67 65 74 76   B.....PO ST /getv
0040  61 6c 75 65 20 48 54 54  50 2f 31 2e 31 0d 0a 41   alue HTT P/1.1..A
0050  63 63 65 70 74 3a 20 61  70 70 6c 69 63 61 74 69   ccept: a pplicati
0060  6f 6e 2f 6a 73 6f 6e 0d  0a 43 6f 6e 74 65 6e 74   on/json. .Content
0070  2d 4c 65 6e 67 74 68 3a  20 31 30 0d 0a 43 6f 6e   -Length:  10..Con
0080  74 65 6e 74 2d 54 79 70  65 3a 20 61 70 70 6c 69   tent-Typ e: appli
0090  63 61 74 69 6f 6e 2f 78  2d 77 77 77 2d 66 6f 72   cation/x -www-for
00a0  6d 2d 75 72 6c 65 6e 63  6f 64 65 64 0d 0a 48 6f   m-urlenc oded..Ho
00b0  73 74 3a 20 31 39 32 2e  31 36 38 2e 30 2e 31 35   st: 192. 168.0.15
00c0  0d 0a 43 6f 6e 6e 65 63  74 69 6f 6e 3a 20 4b 65   ..Connec tion: Ke
00d0  65 70 2d 41 6c 69 76 65  0d 0a 0d 0a 74 61 67 3d   ep-Alive ....tag=
00e0  53 54 41 54 55 53                                 STATUS      
I need to find the "tag=" to get the value from the tag, in this case tag= STATUS.

Is it possible with ENC28J60?

I have only use the EtherShield to respond to HTTP GET.
Like http://arduinoIP/?cmd=3


Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 24
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Of course it is possible smiley-wink You need to find \x0d\x0a\x0d\x0a and parse string smiley-wink

You could check that thread if you need example with simple parsing functions smiley-razz

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1291904599
Logged

Pages: [1]   Go Up
Jump to: