2015-11-05 11:49 AM
Hello there!
I'm trying to receive information from my PARSE web server. As I read through the SPWF01S AT command set, I've found out, the following command:AT+S.HTTPGET=<hostname>,<path&queryopts>,<port>My only problem is that I have no idea how to fill out the given arguments to reach my web server. Normally, from the browser I would type something like this:https://myAppID:javascript-key=myJavaScriptKey@api.parse.com/1/classes/GameScore/Ed1nuqPvcm(This is form PARSE documentation, since it's an open forum, I can not provide my keys, sorry.)Do you guys happen to know, how can I split the given URL into the AT command arguments?Thanks for the help in advanced! #httpget #spwf01sa2015-11-06 12:30 AM
Hi,
please refer to [DEAD LINK /public/STe2ecommunities/interface/Lists/WiFi%20Modules/Flat.aspx?RootFolder=/public/STe2ecommunities/interface/Lists/WiFi%20Modules/HTTPPOST%20Example%20Android%20GCM&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800086789498A6852D4897EA192EB1DEE909&TopicsView=https://my.st.com/public/STe2ecommunities/interface/Lists/WiFi%2520Modules/AllItems.aspx¤tviews=212]this thread on ''custom'' HTTP get/post requests.New Release FW is very soon...ciaoj2015-11-06 07:38 AM
@: What do you guys mean under ''new FW is coming very soon''? I have a project, which I'll have to finish in 2 weeks, and right know I'm stuck at a very simple HTTP GET request. I chose this Wifi module, 'cuz I thought reading from server is a very basic stuff...
2015-11-06 01:44 PM
HTTPGET and HTTPPOST AT-commands are simply shortcuts: all of them open sockets, write a standard request, read reply, and close the socket.
Since you need a custom request, and not a standard one, you have to work using socket's AT-commands: SOCKON, SOCKW, SOCKR, SOCKC. Using sockets you are not stuck. j