This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Is there some kind of http post complete event?

Other Parts Discussed in Thread: CC3200

Hi,

playing around with the simplelink web app, I was wondering if there is any event which indicates that every parameter of a post request is processed?


Thanks Markus

  • The SimpleLinkHttpServerCallback event processes HTTP Requests, including POST requests. I recommend looking at the httpserver example in the CC3200 SDK to see how this works

    Glenn.

  • Hi Glenn,

    thank you for your response. I fear that my question was a bit unclear.
    I have no problem to process my GET and POST token as "single" requests. Think of a form with 4 post token. I don't wont to save each parameter separately having 4 fswrite calls, but process every token in this form and then having an event saying that the complete post operation is done so I could save all four values together.
  • I think I understand what you are attempting to do. I do not think there is an event to say when all POST tokens have been processed, however as a work around I would recommend the following.

    Add a 5th post token that can be considered the trigger token. So when SimpleLinkHttpServerCallback event receives this token, it knows to set the trigger to true. If you have not already tested, you will find that you cannot use the FS module (including fswrite) from within SimpleLinkHttpServerCallback event, you will need to use a trigger variable anyway, that will be used from within the main program loop, have a look at this post - e2e.ti.com/.../1285158

    Glenn.

  • That's the way I write my config to fs already, but thanks for the hint.

    I guess the order of token processing in a form is reliable?
  • It will follow the order in which you have coded things within your HTML page. I recommend testing to verify....you can perform break point debugging within CCS (to check the host code) and also within the Browser (to check the JavaScript and HTML).

    Glenn.