http information

本文探讨了在Java ME开发中遇到100 Continue HTTP响应的问题,详细解释了如何处理这种情况下未接收到200 OK响应的情况,并提供了代码示例。指出此问题通常由手机软件实现错误引起。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

This is the website for http spec http://www.w3.org/Protocols/

100 continue问题:手机上开发java me http 程序,有时会收到 100 continue, 但是一直没有收到 200 response,

这时你可以读出100 响应的实体内容, 200 response 就在里面。这个问题一般是由手机的软件实现错误引起的。

if(responseCode == 100){
    //open the input stream
    //read the complete data that you get. the 200 OK will be in this message body you can parse it to find the actual message and the response code of 200 OK.
}

An origin server that sends a 100 (Continue) response MUST
       ultimately send a final status code, once the request body is
       received and processed, unless it terminates the transport
       connection prematurely.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值