{"action":"created","issue":{"url":"https://api.github.com/repos/Schrolli91/BOSWatch/issues/143","repository_url":"https://api.github.com/repos/Schrolli91/BOSWatch","labels_url":"https://api.github.com/repos/Schrolli91/BOSWatch/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/Schrolli91/BOSWatch/issues/143/comments","events_url":"https://api.github.com/repos/Schrolli91/BOSWatch/issues/143/events","html_url":"https://github.com/Schrolli91/BOSWatch/issues/143","id":181705792,"number":143,"title":"httpRequest - urlparse-Verarbeitung fehlerhaft","user":{"login":"DeBukkIt","id":1151380,"avatar_url":"https://avatars.githubusercontent.com/u/1151380?v=3","gravatar_id":"","url":"https://api.github.com/users/DeBukkIt","html_url":"https://github.com/DeBukkIt","followers_url":"https://api.github.com/users/DeBukkIt/followers","following_url":"https://api.github.com/users/DeBukkIt/following{/other_user}","gists_url":"https://api.github.com/users/DeBukkIt/gists{/gist_id}","starred_url":"https://api.github.com/users/DeBukkIt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeBukkIt/subscriptions","organizations_url":"https://api.github.com/users/DeBukkIt/orgs","repos_url":"https://api.github.com/users/DeBukkIt/repos","events_url":"https://api.github.com/users/DeBukkIt/events{/privacy}","received_events_url":"https://api.github.com/users/DeBukkIt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-07T15:56:08Z","updated_at":"2016-10-07T21:40:15Z","closed_at":null,"body":"Vielen Dank für das Programm, es funktioniert großartig! Problematisch wird es für mich allerdings, wenn ich POCSAG-Daten an einen HTTP-Server weiterleiten will.\r\n\r\nIch möchte an die URL www.feuerwehr-musterstadt.com/e/write.php?ric=...&func=...&msg=... senden. Die im Script genutzte urlparse-Methode von Python zerlegt diesen Link in folgende Teile (Index - Inhalt):\r\n```\r\n0 - http\r\n1 - www.feuerwehr-musterstadt.com\r\n2 - /e/write.php\r\n3 - \r\n4 - ric=...&func=...&msg=...\r\n5 - \r\n```\r\n\r\nJetzt wird es problematisch: Denn das httpRequest-Script versucht, eine HTTP-Verbindung zu Index 2 aufzubauen (hier /e/write.php), was schon mal Schwachsinn ist. Anschließend wird Index 5 per GET gesendet (hier /*gar nichts*/) :\r\n```\r\nhttprequest = httplib.HTTPConnection(url[2]) #connect to URL Path\r\nhttprequest.request(\"GET\", url[5]) #send URL Querry per GET\r\n```\r\nKein Wunder also, dass die Verbindung wieder und wieder fehlschlägt.\r\n\r\nSo wie ich das sehe, wäre die richtige Kombination (Verzeihung, bin Java gewohnt):\r\n```\r\nhttprequest = httplib.HTTPConnection(url[1]) #connect to URL Path\r\nhttprequest.request(\"GET\", url[2] + '?' + url[4]) #send URL Querry per GET\r\n```\r\n\r\n\r\nLiege ich da richtig?\r\nVielen Dank im Voraus, falls damit dieses großartige Programm verbessert/repariert werden kann!"},"comment":{"url":"https://api.github.com/repos/Schrolli91/BOSWatch/issues/comments/252367817","html_url":"https://github.com/Schrolli91/BOSWatch/issues/143#issuecomment-252367817","issue_url":"https://api.github.com/repos/Schrolli91/BOSWatch/issues/143","id":252367817,"user":{"login":"thejockel","id":12292135,"avatar_url":"https://avatars.githubusercontent.com/u/12292135?v=3","gravatar_id":"","url":"https://api.github.com/users/thejockel","html_url":"https://github.com/thejockel","followers_url":"https://api.github.com/users/thejockel/followers","following_url":"https://api.github.com/users/thejockel/following{/other_user}","gists_url":"https://api.github.com/users/thejockel/gists{/gist_id}","starred_url":"https://api.github.com/users/thejockel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thejockel/subscriptions","organizations_url":"https://api.github.com/users/thejockel/orgs","repos_url":"https://api.github.com/users/thejockel/repos","events_url":"https://api.github.com/users/thejockel/events{/privacy}","received_events_url":"https://api.github.com/users/thejockel/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T21:40:15Z","updated_at":"2016-10-07T21:40:15Z","body":"Moin, ja ist kompatibel mit dem Master Branch"}}
{"actor":{"display_login":"thejockel"}}