tsneterr: (3) URL using bad/illegal format or missing URL

matthias_livecode_150811 at m-r-d.de matthias_livecode_150811 at m-r-d.de
Sat Dec 16 17:29:10 EST 2023


Hello Klaus,

You could try to post the data as a file  to the server. There is an array $_files in Livecode server available, which handles the file uploads.

Regards,
Matthias

> Am 16.12.2023 um 17:37 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
> 
> Should I use a different format to pass the CR delimited list to the LC script?
> If yes, which one?
> 
>> Am 16.12.2023 um 16:50 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>> 
>> Followup:
>> I checked fo "illegal" character like @ ' etc., still no joy.
>> This has been working two weeks ago!
>> 
>>> Am 16.12.2023 um 15:51 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
>>> 
>>> Hi friends,
>>> 
>>> I am trying to upload a (not so long) urlencoded text list
>>> to my server, but get the tsNet error as in the subject.
>>> 
>>> In the form of:
>>> ...
>>> ## Remove spaces etc.
>>> put clean_name(tSetlist) into tDateiname
>>> put "whatever" & CR & urlencode(fld "setlist") into tInhalt
>>> put "https://www.MYSERVER.de/setlists.lc?name=" & tDateiname & "&setlist=" & tInhalt into tUrl
>>> ...
>>> 
>>> The LC server script:
>>> -------------------------------------
>>> <?lc
>>> 	put $_GET["name"] into tName
>>> 	put $_GET["setlist"] into tSetList
>>> 	put "OK" into tAntwort
>>> 	try
>>> 		put tSetList into url("file:" & tName)
>>> 	catch tProblem
>>> 		put tProblem into tAntwort
>>> 	end try
>>> 	put tAntwort	
>>> ?>
>>> ----------------------------------------
>>> 
>>> The error comes from LC and NOT from the server, tAnwort = EMPTY!
>>> 
>>> The URL is definitively correct!
>>> Is the urlencoded string in tInhalt too long for a parameter?
>>> Or is a CR in that parameter not a good idea?
>>> 
>>> Any hints very appreciated, thanks in advance.
>>> 
>>> 
>>> Best
>>> 
>>> Klaus
>>> --
>>> Klaus Major
>>> https://www.major-k.de
>>> https://www.major-k.de/bass
>>> klaus at major-k.de
>>> 
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> https://www.major-k.de/bass
>> klaus at major-k.de
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> klaus at major-k.de
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list