SOLVED addzonerecord txt not working with spaces

kjg

Well-Known Member
Mar 2, 2004
180
8
168

andrew.n

Well-Known Member
Jun 9, 2020
982
363
63
EU
cPanel Access Level
Root Administrator
try to use ' instead of " like or vice versa:

'txtdata="v=spf1-a-~all'
 

kjg

Well-Known Member
Mar 2, 2004
180
8
168
We tried ' and " but non of them works when there are space in txtdata unfortunatly
 

kjg

Well-Known Member
Mar 2, 2004
180
8
168
Thank you Andrew
Your comment put me on the right track and I found that the old program that was the problem, use curl and without urlencodeing txt it did not work
Changed to urlencode ('v=spf1 a -all') and now it works fine

Time to update that program to use a little bit more modern approach, but since it now works I guess that will be later... much later :)
 
  • Like
Reactions: cPRex and andrew.n