All works fine but when the parameter in the url has spaces it gives me a “bad url”…
When there is no spaces there is no problem, i have been looking for a urlEnconde or something like that but i cant believe there is none.
Must be something i dont know to fix that common problem…
“&text=Hi world” ->Problem
“&text=Hiworld” ->oK
Using string.gsub(stringurl, " ", “_”)
Gives me an error
invalid capture index
stack traceback:
[C]: ?
[C]: in function ‘gsub’
Using this,says unsupported URL
http://w3.impa.br/~diego/software/luasocket/url.html
Escaped string
http%3a%2f%2fwww%2emydomain%2ecom%2ffame%2finsert%2ephp%3fphoto%3d7c434b1a8ed0b906f5ff8f7e78b2c60c1330781605%2ejpg%26text%3dWrite%20msg%20here%26hash%3d4c206b1ddad53f4a2430ecd44f7a8638c594b9ad
[import]uid: 113117 topic_id: 22778 reply_id: 322778[/import]