HTTPRequest return order
Posted: Mon Nov 06, 2017 1:09 pm
I make requests:
HTTPRequest(#PB_HTTP_Get, "http://127.0.0.1/query.php?nr=1", @HttpGetEvent())
HTTPRequest(#PB_HTTP_Get, "http://127.0.0.1/query.php?nr=2", @HttpGetEvent())
HTTPRequest(#PB_HTTP_Get, "http://127.0.0.1/query.php?nr=3", @HttpGetEvent())
HTTPRequest(#PB_HTTP_Get, "http://127.0.0.1/query.php?nr=4", @HttpGetEvent())
depends server load, files may come in other order, example:
3
1
2
4
If i make several queries in succession, the files(answers) from servers may come in other order. How i can make http request command, that
not return until file is received. Or is there some other method to receive files in right order?
Shortly, i need synchronous query, is that possible?
Thanks
Raimo
HTTPRequest(#PB_HTTP_Get, "http://127.0.0.1/query.php?nr=1", @HttpGetEvent())
HTTPRequest(#PB_HTTP_Get, "http://127.0.0.1/query.php?nr=2", @HttpGetEvent())
HTTPRequest(#PB_HTTP_Get, "http://127.0.0.1/query.php?nr=3", @HttpGetEvent())
HTTPRequest(#PB_HTTP_Get, "http://127.0.0.1/query.php?nr=4", @HttpGetEvent())
depends server load, files may come in other order, example:
3
1
2
4
If i make several queries in succession, the files(answers) from servers may come in other order. How i can make http request command, that
not return until file is received. Or is there some other method to receive files in right order?
Shortly, i need synchronous query, is that possible?
Thanks
Raimo