HTTPS error “data length too long” in s3_pkt.c from Socket.io

I’m unsure weather it works. But here’s my idea/suggestion:

  1. Idea:
    I assume that you (possibly) tried to access a URL which is too long. This happens if data often is tansmitted via GET-Parameters. The official limit for a URL is below 512 Bytes.

Details: The HTTP specification says that a protocol line may be at most 512 Bytes. If longer the server may reject the request or may be unable to handle the request. The first line in HTTP with a GET-requet is like “GET /path/to?param1=data1&param2=data2&… HTTP/1.1” which would need to fit in 512 bytes. For POST requests theres no such limitation..

However your error seems to origin from some SSL implementation (openSSL?): refering to s3_pkt.c at line 503 (I found a file like this here: http://www.opensource.apple.com/source/OpenSSL/OpenSSL-7.1/openssl/ssl/s3_pkt.c) but seems to be different; I don’t know the details, and am just speculating: I could think of that the openSSL implementation has some limited support for long GET-Requests (as they are not HTTP conform) and just rejects them this way…

I see these possibities now:
1. Solution: Use POST instead of GET-Requests to transmit longer datasets. See if this works…
2. Try to replace you openssl-installation or libopenssl at the server used; it’s possibly broken or outdated?
3. Try to request some help from the openssl developers…

Hope that helps…

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)