One last thing, when I’m logged out, I get the basic information in the Download Zone, when I’m logged in, it tells me i need to be an employee to download anything. I’m sure there is something wrong with my account.
Great, you can use the HTTP client now.
Regarding the DZ try the "Contact us" link on top of the page or your direct link with your Telit vendor or Representative.
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hi,
I’m looking for help with sending a string of data to a server using PUT.
In Linux, I use the following command and it works straight off:
curl -X PUT http://localhost/testfolder/putdb2.php -d string=C:21:21:22:23
My GET command works:
AT##SGACT=1,1
AT##SD=1,0,80,”SOME IP ADDRESS”,0,0,0
GET /testfolder/putdb2.php?id=200&instp=201&ptoday=202&ptotal=203 HTTP/1.0$0D$0A
Host: SOME IP ADDRESS$0D$0A
Connection: keep-alive$0D$0A$0D$0A
But I want to use thw following
AT##SGACT=1,1
AT##SD=1,0,80,”SOME IP ADDRESS”,0,0,0
Transfer-Encoding: chunked$0D$0A
PUT /testfolder/putdb2.php -d string=C:21:21:22:23 HTTP/1.1$0D$0A
Host: SOME IP ADDRESS$0D$0A
Connection: keep-alive$0D$0A$0D$0A
but I get
HTTP/1.0 400 Bad request
Connection: close
Content-Type: text/plain
Date: Mon May 13 12:05:54 2013
Server:
Request could not be understood( Status: 400 )
NO CARRIER
I believe I may be missing header information or something else.
NB The $0A and $0D are just Carriage Return and Line Feed to ensure they are being sent correctly.
Also I’m using the GC864 in the EVK2 Evaluation Kit and I’m using Terminal by Br@y to communicate over serial.
Indeed is wrong request forming, see for example here.
Note there is an HTTP POST/PUT facility included in firmware, see AT#HTTPSND command.
That’s perfect, I’ve searched and found hundreds of pages, but this is the exact format.
I’ll have a look into the AT#HTTPSND command as well.
Thanks again.
Regarding #HTTPSND do you have the latest firmware?
The latest firmware version is 10.00.xx7.
How do I get new firmware, tools and documentation files from Telit?
& check your email.
Got the email, updated from 10.00.055 to 10.00.057 and now HTTPCFG comes back with
#HTTPCFG: 0,"",80,0,"","******",0,120,1
#HTTPCFG: 1,"",80,0,"","******",0,120,1
#HTTPCFG: 2,"m2mlocate.telit.com",9978,0,"","******",0,120,1
Thanks again for your help.
One last thing, when I’m logged out, I get the basic information in the Download Zone, when I’m logged in, it tells me i need to be an employee to download anything. I’m sure there is something wrong with my account.
Great, you can use the HTTP client now.
Regarding the DZ try the "Contact us" link on top of the page or your direct link with your Telit vendor or Representative.
Normal
0
false
false
false
EN-IN
X-NONE
X-NONE
MicrosoftInternetExplorer4
<m:mathFont m:val=