Hi, I have a client that is using nsIHttpChannel to upload some data to a server. The server decides as soon as it sees the request headers that it's going to reject the request, so it sends a valid HTTP response back to the client and closes the connection. The uploaded data is still in transit, but the server doesn't care, as it was going to dump that data anyhow.
The question is whether in such a case the client can access the response from the server. What seems to be happening is that the channel sees the connection closing while it's still still streaming data up to the server, so it generates a "connection reset" error and bails. The response header and body from the server don't appear to be available from the channel (accessing channel.responseStatus returns NOT_AVAILABLE, for instance) even though they were properly transmitted by the server (and presumably received by the client). Does anyone have any insight into how this is supposed to work? Any advice would be greatly appreciated. -Todd _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
