{"action":"opened","issue":{"url":"https://api.github.com/repos/SteveNew/FoilCast/issues/1","repository_url":"https://api.github.com/repos/SteveNew/FoilCast","labels_url":"https://api.github.com/repos/SteveNew/FoilCast/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/SteveNew/FoilCast/issues/1/comments","events_url":"https://api.github.com/repos/SteveNew/FoilCast/issues/1/events","html_url":"https://github.com/SteveNew/FoilCast/issues/1","id":545986016,"node_id":"MDU6SXNzdWU1NDU5ODYwMTY=","number":1,"title":"RESTRequest1.Execute returns URL error","user":{"login":"FactoryXCode","id":41634066,"node_id":"MDQ6VXNlcjQxNjM0MDY2","avatar_url":"https://avatars2.githubusercontent.com/u/41634066?v=4","gravatar_id":"","url":"https://api.github.com/users/FactoryXCode","html_url":"https://github.com/FactoryXCode","followers_url":"https://api.github.com/users/FactoryXCode/followers","following_url":"https://api.github.com/users/FactoryXCode/following{/other_user}","gists_url":"https://api.github.com/users/FactoryXCode/gists{/gist_id}","starred_url":"https://api.github.com/users/FactoryXCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FactoryXCode/subscriptions","organizations_url":"https://api.github.com/users/FactoryXCode/orgs","repos_url":"https://api.github.com/users/FactoryXCode/repos","events_url":"https://api.github.com/users/FactoryXCode/events{/privacy}","received_events_url":"https://api.github.com/users/FactoryXCode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2020-01-06T23:03:51Z","updated_at":"2020-01-06T23:03:51Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nRESTRequest1.Execute returns an URL error, because somehow a backslash is added before https//..\r\n\r\nAlso this codeline is wrong?\r\n`RESTRequest1.AddParameter('v', Copy(LabeledEdit1.Text, Pos('?v=', LabeledEdit1.Text)+3, 9999));`\r\nand should be:\r\n`RESTRequest1.AddParameter('v', Copy(LabeledEdit1.Text, Pos('?v=', LabeledEdit1.Text)+3), pkGETorPOST);`\r\n\r\nOk, the URL I tried was: \"https://www.youtube.com/watch?v=ooYMvzxPXSc\"\r\n\r\nThe source URL however is translated as:\r\n`TESTSTRING := RESTRequest1.GetFullRequestURL(true);`\r\nThe result is: '/http://192.168.0.4:8008/apps/YouTube?v=ooYMvzxPXSc' < Notice the backslash at the beginning of the URL.\r\n\r\nI tested the code on Delphi 10.3.1 and 10.3.3, both with the same result.\r\n\r\n"}}
{"actor":{"display_login":"FactoryXCode"}}