3

I wanted to save the HTTP Post request in case of network failure/ unavailability so that when network returns I can send it then. I am not sure if its possible, but it will be great if there is a way to do so.

I use MultipartEntity to create the post request to be sent to server.

Thanks

PS: Saving the data of the post request individually would be too much work, I want to cut down on that.

4

1 に答える 1

1

ローカル ホストに ServerSocket を作成し、そこにリクエストを送信し、すべてのバイトを読み取って保存します。これがシリアル化されたリクエストになります。後でソケットを使用して実サーバーに送信できます。

于 2013-04-29T11:05:45.340 に答える