Skip to main content
kecskesgery
Associate III
November 5, 2015
Question

HTTP GET request - get data from custom web server

  • November 5, 2015
  • 3 replies
  • 782 views
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 topic has been closed for replies.

    3 replies

    Gerardo GALLUCCI
    ST Employee
    November 6, 2015
    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&currentviews=212]this thread on ''custom'' HTTP get/post requests.

    New Release FW is very soon...

    ciao

    j

    kecskesgery
    Associate III
    November 6, 2015
    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...

    Gerardo GALLUCCI
    ST Employee
    November 6, 2015
    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