Home/Support/Support Forum/GET and POST request not working

GET and POST request not working

0 votes
hi

i used same GET and POST request to check whether it is worked or not, but same result. Still not find any solution

my settings are given below on terminal mode of XCTU
+++OK
ATAI
0
ATDI
0
ATCH
9
ATLM
9
ATPL
4
ATAH
2
ATCE
2
ATID
test Link
ATEE
2
ATPK
OK
ATIP
1
ATMA
0
ATTM
64
ATTS
258
ATDO
3
ATEQ
devicecloud.digi.com
ATSH
40
ATSL
9D67870C
ATNS
192.168.0.1
ATDL
54.86.132.254
ATNI

ATKP

ATKC

ATKL

ATC0
C03A
ATDE
50
ATGW
192.168.0.1
ATMK
255.255.255.0
ATMY
192.168.0.124
ATBD
3
ATNB
0
ATSB
0
ATRO
3
ATFT
7F3
ATAP
0
ATAO
2
ATD0
1
ATD1
0
ATD2
0
ATD3
0
ATD4
0
ATD5
1
ATD6
0
ATD7
1
ATD8
1
ATD9
1
ATP0
1
ATP1
0
ATP2
0
ATP3
1
ATP4
1
ATPD
7FFF
ATPR
7FFF
ATDS
0
ATM0
0
ATM1
0
ATLT
0
ATRP
28
ATAV
1
ATIC
0
ATIF
1
ATIR
0
ATTP
23
AT%V
D2D
ATOM
7FFF
ATT0
0
ATT1
0
ATT2
0
ATT3
0
ATT4
0
ATT5
0
ATT6
0
ATT7
0
ATT8
0
ATT9
0
ATQ0
0
ATQ1
0
ATQ2
0
ATQ3
0
ATQ4
0
ATSA
2710
ATSM
0
ATSO
100
ATSP
1F4
ATST
1388
ATWH
0
ATCC
2B
ATCT
64
ATGT
3E8
ATCN
OK
+++OK
+++OK
GET /pub/WWW/TheProject.html HTTP/1.1
Host: www.w3.org
Content-Type: text/plain; charset=utf-8
Accept: */*+++OK
GET /pub/WWW/TheProject.html HTTP/1.1
Host: www.w3.org
Accept: */*
Content-Type: text/plain; charset=utf-8 +++OK
GET /pub/WWW/TheProject.html HTTP/1.1
Host: www.w3.org

Please help me
i also send POST request

POST /tutorials/internet-datalogging-with-arduino-and-xbee-wifi
Host: learn.sparkfun.com
Connection: close
Accept: */*
Content-Type: application/x-www-form-urlencoded
Content-Length: 29
val1=post&val2=0&val3=98.6000

but not working..
asked Sep 23, 2015 in IEEE 802.11 (Wi-Fi) by micky2406 New to the Community (2 points)

Please log in or register to answer this question.

1 Answer

0 votes
May I suggest you take a step back and take the radios out of the picture and see if you can get this 3rd party example to work under an Ethernet connection to your server.
answered Sep 23, 2015 by mvut Veteran of the Digi Community (11,300 points)
hi
which is the third party example?
OK
now i just send simple GET and POST command to the local server as below:

Get /app/service/time
Host: 192.168.0.106
Connection: close
XCTU Terminal rply::: Error   OK

(ideally unix time as response)

POST /app/service/demo
Host: 192.168.0.106
Connection: close
Accept: */*
Content-Type: application/x-www-form-urlencoded
Content-Length: 0

XCTU Terminal rply::: Error   OK
(ideally 200 ok as response)

i used Ping command it is working with 192.168.0.106.
then why data is not sending to local server? is there any missing character in GET and POST string?

Please reply me soon as possible i am stuck here

Micky
hi
its working .. there is timing issue while sending GET and POST command..

Thanks for support
...