Createfile until cause issue with special characters

when i try to put { braces it cause issue with EOF in action script , can someone guide how to skip special characters in action createfile EOF syntax.

delete __createfile
delete c:\temp\snow.bat

createfile until eof
cd c:\temp\curl
curl -v -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Basic [redacted]" -X POST --data "{ 'caller_id':}
eof
move __createfile c:\temp\snow.bat </code>


STATUS: Running action…
Command succeeded delete __createfile
Command succeeded delete No ‘c:\temp\snow.bat’ exists to delete, no failure reported
Command failed (Substitution failed while writing file) createfile until eof

— Result —
Evaluation failed!

Basically change { to {{

See Tip: Escaping curly brackets for substitutions in ActionScript for a more detailed explanation on escaping rules.

And…change the password. The Basic Auth header you posted is easily decoded.

2 Likes

It worked , thank you so much

1 Like