{"action":"closed","issue":{"url":"https://api.github.com/repos/vshymanskyy/TinyGSM/issues/120","repository_url":"https://api.github.com/repos/vshymanskyy/TinyGSM","labels_url":"https://api.github.com/repos/vshymanskyy/TinyGSM/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/vshymanskyy/TinyGSM/issues/120/comments","events_url":"https://api.github.com/repos/vshymanskyy/TinyGSM/issues/120/events","html_url":"https://github.com/vshymanskyy/TinyGSM/issues/120","id":287281451,"number":120,"title":"[Question] Are there a limit on sending a post request using SIM808?","user":{"login":"hubaksis","id":13341477,"avatar_url":"https://avatars0.githubusercontent.com/u/13341477?v=4","gravatar_id":"","url":"https://api.github.com/users/hubaksis","html_url":"https://github.com/hubaksis","followers_url":"https://api.github.com/users/hubaksis/followers","following_url":"https://api.github.com/users/hubaksis/following{/other_user}","gists_url":"https://api.github.com/users/hubaksis/gists{/gist_id}","starred_url":"https://api.github.com/users/hubaksis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubaksis/subscriptions","organizations_url":"https://api.github.com/users/hubaksis/orgs","repos_url":"https://api.github.com/users/hubaksis/repos","events_url":"https://api.github.com/users/hubaksis/events{/privacy}","received_events_url":"https://api.github.com/users/hubaksis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-10T00:57:24Z","updated_at":"2018-02-03T15:07:56Z","closed_at":"2018-02-03T15:07:56Z","author_association":"NONE","body":"I am sending text files over https manually using following method:\r\n```\r\nhttp.beginRequest()\r\n..\r\nhttp.post(\"url\")\r\nhttp.sendHeader(\"Content-Type\", F(\"multipart/form-data; boundary=--=123456\"));\r\nhttp.sendHeader(\"Content-Length\", fileLength + empty_request_length);\r\nhttp.beginBody()\r\nhttp.println(\"----=123456\");\r\nhttp.println(\"Content-Disposition: form-data; name=\\\"file\\\"; filename=\\\"myfile.txt\\\"\");\r\nhttp.println(\"Content-Type: text/plain\");\r\nhttp.println();\r\n//Read file and \r\n//send file line by line \r\n// http.print(buffer);\r\n\r\nhttp.println();\r\nhttp.endRequest()\r\n```\r\n\r\nBuffer's size is 100 bytes.\r\nI managed to send files with the size of 10,000 bytes. However, some of the http.print(buffer) returned error, that is why I make several tries while sending a line.\r\n\r\nI noticed that sometimes SIM808 modem reboots, sometimes it sends data correctly. \r\n\r\nMy questions:\r\nDo you know how actually data are sent when I do http.print(buffer)? \r\nDo they get stored in some buffer in SIM808 or they are sent to the server immediately?\r\nIn there is a buffer, then it should be some limit on the file. \r\nIf no buffer - far as I understand - there should be no limit on the client side. The only limit is the buffer's size. Do you know what is it?\r\n\r\nThank you.\r\n\r\n"}}
{"actor":{"display_login":"vshymanskyy"}}