• You can see there that the first request goes fine, but the second one just seems to go nowhere after being received....

    Order doesn't matter either - same requests in opposite order, but failing same way for unknown reasons.

    
    setting up server on 192.168.2.102:80
    ["AT+CIPSERVER=1,80\r\n"
    ] "\r\nO" <--- "\r\nO"
    ] "OK\r\n" <--- "K\r\n"
    ] "Li" <--- "Li"
    ] "Link" <--- "nk"
    ] "Link\r\n\r" <--- "\r\n\r"
    ] "\n+IPD,0" <--- "\n+IPD,0"
    ] "+IPD,0,29" <--- ",29"
    ] "+IPD,0,299:GE" <--- "9:GE"
    ] "+IPD,0,297:T /st" <--- "T /st"
    ] "+IPD,0,292:atus2." <--- "atus2."
    ] "+IPD,0,286:json " <--- "json "
    ] "+IPD,0,281:HTTP/" <--- "HTTP/"
    ] "+IPD,0,276:1.1\r\nH" <--- "1.1\r\nH"
    ] "+IPD,0,270:ost: " <--- "ost: "
    ] "+IPD,0,265:192.1" <--- "192.1"
    ] "+IPD,0,260:68.2.1" <--- "68.2.1"
    ] "+IPD,0,254:02\r\nU" <--- "02\r\nU"
    ] "+IPD,0,249:ser-Ag" <--- "ser-Ag"
    ] "+IPD,0,243:ent: " <--- "ent: "
    ] "+IPD,0,238:Mozil" <--- "Mozil"
    ] "+IPD,0,233:la/5.0" <--- "la/5.0"
    ] "+IPD,0,227: (Win" <--- " (Win"
    ] "+IPD,0,222:dows " <--- "dows "
    ] "+IPD,0,217:NT 6.3" <--- "NT 6.3"
    ] "+IPD,0,211:; WOW" <--- "; WOW"
    ] "+IPD,0,206:64; rv" <--- "64; rv"
    ] "+IPD,0,200::36.0" <--- ":36.0"
    ] "+IPD,0,195:) Gec" <--- ") Gec"
    ] "+IPD,0,190:ko/201" <--- "ko/201"
    ] "+IPD,0,184:00101" <--- "00101"
    ] "+IPD,0,179: Fire" <--- " Fire"
    ] "+IPD,0,174:fox/36" <--- "fox/36"
    ] "+IPD,0,168:.0\r\nA" <--- ".0\r\nA"
    ] "+IPD,0,163:ccept:" <--- "ccept:"
    ] "+IPD,0,157: text" <--- " text"
    ] "+IPD,0,152:/html" <--- "/html"
    ] "+IPD,0,147:,appli" <--- ",appli"
    ] "+IPD,0,141:catio" <--- "catio"
    ] "+IPD,0,136:n/xht" <--- "n/xht"
    ] "+IPD,0,131:ml+xml" <--- "ml+xml"
    ] "+IPD,0,125:,appl" <--- ",appl"
    ] "+IPD,0,120:icatio" <--- "icatio"
    ] "+IPD,0,114:n/xml" <--- "n/xml"
    ] "+IPD,0,109:;q=0." <--- ";q=0."
    ] "+IPD,0,104:9,*/*;" <--- "9,*/*;"
    ] "+IPD,0,98:q=0.8" <--- "q=0.8"
    ] "+IPD,0,93:\r\nAcc" <--- "\r\nAcc"
    ] "+IPD,0,88:ept-La" <--- "ept-La"
    ] "+IPD,0,82:nguag" <--- "nguag"
    ] "+IPD,0,77:e: en" <--- "e: en"
    ] "+IPD,0,72:-US,en" <--- "-US,en"
    ] "+IPD,0,66:;q=0." <--- ";q=0."
    ] "+IPD,0,61:5\r\nAc" <--- "5\r\nAc"
    ] "+IPD,0,56:cept-E" <--- "cept-E"
    ] "+IPD,0,50:ncodi" <--- "ncodi"
    ] "+IPD,0,45:ng: g" <--- "ng: g"
    ] "+IPD,0,40:zip, d" <--- "zip, d"
    ] "+IPD,0,34:eflat" <--- "eflat"
    ] "+IPD,0,29:e\r\nCo" <--- "e\r\nCo"
    ] "+IPD,0,24:nnecti" <--- "nnecti"
    ] "+IPD,0,18:on: k" <--- "on: k"
    ] "+IPD,0,13:eep-al" <--- "eep-al"
    ] "+IPD,0,7:ive\r\n" <--- "ive\r\n"
    ] "+IPD,0,2:\r\n\r\nO" <--- "\r\n\r\nO"
    ] "OK\r\n" <--- "K\r\n"
    Socket accept 0 "GET /status2.json HTTP/1.1\r\nHost: 192.168.2.102\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-alive\r\n\r\n" undefined
    json
    ["AT+CIPSEND=0,64\r\nHTTP/1.0 404 OK\r\nServer: Espruino 1v76\r\nContent-Type: text/plain"
    ] ">" <--- ">"
    ] "> " <--- " "
    ] "> \r\nSEND" <--- "\r\nSEND"
    ] "SEND OK\r\n" <--- " OK\r\n"
    ["AT+CIPSEND=0,26\r\n\r\n\r\njson status2 not found"
    ] "> " <--- "> "
    ] "> \r\nS" <--- "\r\nS"
    ] "SEND OK" <--- "END OK"
    ] "SEND OK\r\n" <--- "\r\n"
    ["AT+CIPCLOSE=0\r\n"
    ] "\r\nO" <--- "\r\nO"
    ] "OK\r\nU" <--- "K\r\nU"
    ] "Unlink\r" <--- "nlink\r"
    ] "\n" <--- "\n"
    ] "L" <--- "L"
    ] "Link" <--- "ink"
    ] "Link\r\n" <--- "\r\n"
    ] "\r\n+IP" <--- "\r\n+IP"
    ] "+IPD,0," <--- "D,0,"
    ] "+IPD,0,298:G" <--- "298:G"
    ] "+IPD,0,297:ET /s" <--- "ET /s"
    ] "+IPD,0,292:tatus" <--- "tatus"
    ] "+IPD,0,287:.json " <--- ".json "
    ] "+IPD,0,281:HTTP/" <--- "HTTP/"
    ] "+IPD,0,276:1.1\r\n" <--- "1.1\r\n"
    ] "+IPD,0,271:Host: " <--- "Host: "
    ] "+IPD,0,265:192.1" <--- "192.1"
    ] "+IPD,0,260:68.2.1" <--- "68.2.1"
    ] "+IPD,0,254:02\r\nU" <--- "02\r\nU"
    ] "+IPD,0,249:ser-A" <--- "ser-A"
    ] "+IPD,0,244:gent: " <--- "gent: "
    ] "+IPD,0,238:Mozil" <--- "Mozil"
    ] "+IPD,0,233:la/5.0" <--- "la/5.0"
    ] "+IPD,0,227: (Win" <--- " (Win"
    ] "+IPD,0,222:dows " <--- "dows "
    ] "+IPD,0,217:NT 6.3" <--- "NT 6.3"
    ] "+IPD,0,211:; WOW" <--- "; WOW"
    ] "+IPD,0,206:64; rv" <--- "64; rv"
    ] "+IPD,0,200::36.0" <--- ":36.0"
    ] "+IPD,0,195:) Gec" <--- ") Gec"
    ] "+IPD,0,190:ko/201" <--- "ko/201"
    ] "+IPD,0,184:00101" <--- "00101"
    ] "+IPD,0,179: Fire" <--- " Fire"
    ] "+IPD,0,174:fox/36" <--- "fox/36"
    ] "+IPD,0,168:.0\r\nA" <--- ".0\r\nA"
    ] "+IPD,0,163:ccept:" <--- "ccept:"
    ] "+IPD,0,157: text" <--- " text"
    ] "+IPD,0,152:/html" <--- "/html"
    ] "+IPD,0,147:,appli" <--- ",appli"
    ] "+IPD,0,141:catio" <--- "catio"
    ] "+IPD,0,136:n/xhtm" <--- "n/xhtm"
    ] "+IPD,0,130:l+xml" <--- "l+xml"
    ] "+IPD,0,125:,appl" <--- ",appl"
    ] "+IPD,0,120:icatio" <--- "icatio"
    ] "+IPD,0,114:n/xml" <--- "n/xml"
    ] "+IPD,0,109:;q=0.9" <--- ";q=0.9"
    ] "+IPD,0,103:,*/*;" <--- ",*/*;"
    ] "+IPD,0,98:q=0.8" <--- "q=0.8"
    ] "+IPD,0,93:\r\nAcce" <--- "\r\nAcce"
    ] "+IPD,0,87:pt-La" <--- "pt-La"
    ] "+IPD,0,82:nguage" <--- "nguage"
    ] "+IPD,0,76:: en-" <--- ": en-"
    ] "+IPD,0,71:US,en" <--- "US,en"
    ] "+IPD,0,66:;q=0.5" <--- ";q=0.5"
    ] "+IPD,0,60:\r\nAcc" <--- "\r\nAcc"
    ] "+IPD,0,55:ept-E" <--- "ept-E"
    ] "+IPD,0,50:ncodin" <--- "ncodin"
    ] "+IPD,0,44:g: gz" <--- "g: gz"
    ] "+IPD,0,39:ip, de" <--- "ip, de"
    ] "+IPD,0,33:flate" <--- "flate"
    ] "+IPD,0,28:\r\nCon" <--- "\r\nCon"
    ] "+IPD,0,23:nectio" <--- "nectio"
    ] "+IPD,0,17:n: ke" <--- "n: ke"
    ] "+IPD,0,12:ep-al" <--- "ep-al"
    ] "+IPD,0,7:ive\r\n\r" <--- "ive\r\n\r"
    ] "+IPD,0,1:\n\r\nOK" <--- "\n\r\nOK"
    ] "OK\r\n" <--- "\r\n"
    > 
    
    
About

Avatar for DrAzzy @DrAzzy started