Hello
I report a problem arose with PostMutipart and as I worked around it.
I'm trying to send messages and photos to Telegram using PostMultipart of OkHTTPUtils2; this works for messages, but not for pictures (Unsupported media type).
I have bypassed the obstacle using a forwarder site where a PHP script use CURL library for send Message and pictures to Telegram; this works if I have message and pictures, fails when there is only a message
(illegal characters found in URL).
This is because the last parmeters on parameters map is sent with x0D0A.
Adding a dummy field sending was successful.
PHP has received: x790d0a
John Rossati
I report a problem arose with PostMutipart and as I worked around it.
I'm trying to send messages and photos to Telegram using PostMultipart of OkHTTPUtils2; this works for messages, but not for pictures (Unsupported media type).
I have bypassed the obstacle using a forwarder site where a PHP script use CURL library for send Message and pictures to Telegram; this works if I have message and pictures, fails when there is only a message
(illegal characters found in URL).
This is because the last parmeters on parameters map is sent with x0D0A.
Adding a dummy field sending was successful.
B4X:
...
parameters.Put("x","y") ' without this is unable to send only message
job1.Initialize("Job1", Me)
job1.PostMultipart("http://www.condorinformatique.com/Telegram/ToTelegram.php",parameters,files)
...
John Rossati