EddyTheDog |
02-22-2012 08:20 AM |
Coders - Help before I throw another laptop out of the widow....
I am trying to send a REST url like this - It looks odd as its for YQL..
Code:
http://query.yahooapis.com/v1/public/yql?q=insert into wordpress.post (title, description, blogurl, username, password) values ("Test damian", "<a href="http//:www.xxx.net">Damian</a>", "http://xxxxxxx.co.uk", "kjhjkhjkh", "kjhkjhjkhj")&format=json&diagnostics=true&env=store://datatables.org/alltableswithkeys&callback=cbfunc
Its obviously sent encoded - The above is for clarity
Code:
http://query.yahooapis.com/v1/public/yql?q=insert%20into%20wordpress.post%20(title%2C%20description%2C%20blogurl%2C%20username%2C%20password)%20values%20(%22Test%20damian%22%2C%20%22%3Ca%20href%3D%22http%2F%2F%3Awww.xxx.net%22%3EDamian%3C%2Fa%3E%22%2C%20%22http%3A%2F%2Fxxxxxxx.co.uk%22%2C%20%22kjhjkhjkh%22%2C%20%22kjhkjhjkhj%22)&format=json&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=cbfunc
I can see what the problem is - I have highlighted the little fuckers in red in the code - I have tried escaping them and that works but then the backslash appears in the HTML for the post and that is obviously no good.....
This all new to me and I just can not see a way around it - the documentation is sparse at best...
Any ideas?
:Oh crap
|