HTTP GET request - get data from custom web server
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-11-05 11:49 AM
Posted on November 05, 2015 at 20:49
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 #spwf01sa
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-11-06 12:30 AM
Posted on November 06, 2015 at 09:30
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...ciaojOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-11-06 7:38 AM
Posted on November 06, 2015 at 16:38
@: 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...
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-11-06 1:44 PM
Posted on November 06, 2015 at 22:44
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