polling a HTTP server from J2ME client

前端 未结 4 1410
闹比i
闹比i 2021-02-10 22:28

I have a J2ME app running on my mobile phone(client),

I would like to open an HTTP connection with the server and keep polling for updated information on the server.

4条回答
  •  盖世英雄少女心
    2021-02-10 23:30

    The HEAD HTTP request is the method that HTTP provides if you want to check if a page has changed or not, it is used by browsers and proxy servers to check whether a page has been updated or not without consuming much bandwidth.

    In HTTP terms, the HEAD request is the same as GET without the body, I assume this would be only a couple hundred bytes at most which looks acceptable if your polls are not very frequent.

提交回复
热议问题