Check-in [90dc8d7789]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Addition case that server did not send any data and just closed
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | client-http-error
Files: files | file ages | folders
SHA1:90dc8d7789b011ef5faf00c3566454ab6d4342e4
User & Date: oehhar 2015-06-02 17:30:55
Context
2015-06-02 17:36
Log the fact that there is no TLS support Closed-Leaf check-in: 7e275a2c33 user: oehhar tags: client-http-error
2015-06-02 17:30
Addition case that server did not send any data and just closed check-in: 90dc8d7789 user: oehhar tags: client-http-error
2015-06-02 14:07
Return http error messages for authentication and server errorrs. Ticket [ea054d339d] check-in: 027ddd8c7c user: oehhar tags: client-http-error
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ClientSide.tcl.

1523
1524
1525
1526
1527
1528
1529



1530
1531
1532
1533
1534
1535
1536
# -------  ----------  ----------   -------------------------------------------
#       1  06/02/2015  H.Oehlmann   Initial version
#
#
###########################################################################
proc ::WS::Client::FormatHTTPError {token} {
    if {[string equal [::http::status $token] ok]} {



        return "HTTP failure code [::http::ncode $token]"
    } else {
        return "HTTP error: [::http::error $token]"
    }
}

###########################################################################







>
>
>







1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
# -------  ----------  ----------   -------------------------------------------
#       1  06/02/2015  H.Oehlmann   Initial version
#
#
###########################################################################
proc ::WS::Client::FormatHTTPError {token} {
    if {[string equal [::http::status $token] ok]} {
        if {[::http::size $token] == 0} {
            return "HTTP failure socket closed"
        }
        return "HTTP failure code [::http::ncode $token]"
    } else {
        return "HTTP error: [::http::error $token]"
    }
}

###########################################################################