Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-22-2012, 08:20 AM   #1
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,077
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?

EddyTheDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 09:05 AM   #2
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,077
Worked it out.......

2 Hours of my life I will never get back.
EddyTheDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 09:09 AM   #3
lucas131
¯\_(ツ)_/¯
 
Industry Role:
Join Date: Aug 2004
Posts: 11,475
ok then ...
lucas131 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 10:15 AM   #4
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
Tee hee!
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 10:18 AM   #5
Fletch XXX
GFY HALL OF FAME DAMMIT!!!
 
Fletch XXX's Avatar
 
Join Date: Jan 2002
Location: that 504
Posts: 60,840
Quote:
Originally Posted by EddyTheDog View Post
Worked it out.......

2 Hours of my life I will never get back.
ive found though, when something like this gets in your way you end up learning something and it will never happen again.
__________________

Want an Android App for your tube, membership, or free site?

Need banners or promo material? Hit us up (ICQ Fletch: 148841377) or email me fletchxxx at gmail.com - recent work - About me
Fletch XXX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 10:44 AM   #6
Fap
Just Du It
 
Fap's Avatar
 
Industry Role:
Join Date: Feb 2004
Posts: 12,094
What'd you learrrn?
Fap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 10:56 AM   #7
Why
MFBA
 
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
dont put double quotes inside your double quotes. ;)
Why is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 11:07 AM   #8
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,077
Quote:
Originally Posted by Why View Post
dont put double quotes inside your double quotes. ;)
I knew that - I couldn't work out how to use html without double quotes or escaping them....

It turns out that you can use single quotes on the outside in the YQL and then you can escape the single quotes in the html itself.

It is true I did learn a lot fucking around with that stuff all afternoon....

Last edited by EddyTheDog; 02-22-2012 at 11:08 AM..
EddyTheDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 11:16 AM   #9
mikke
Confirmed User
 
mikke's Avatar
 
Industry Role:
Join Date: Jan 2010
Location: Europe
Posts: 1,327
Quote:
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=sto re://datatables.org/alltableswithkeys&callback=cbfunc
returned
Quote:
cbfunc({"query":{"count":0,"created":"2012-02-22T18:15:59Z","lang":"en-US","diagnostics":{"publiclyCallable":"true","url" :[{"execution-start-time":"19","execution-stop-time":"420","execution-time":"401","proxy":"DEFAULT","content":"http://www.datatables.org/wordpress/wordpress.post.xml"},{"execution-start-time":"431","execution-stop-time":"492","execution-time":"61","proxy":"DEFAULT","content":"http://xxxxxxx.co.uk/xmlrpc.php"}],"javascript":["Exception: TypeError: Cannot read property \"param\" from undefined (<javascript>#163)",{"execution-time":"67","instructions-used":"42067","table-name":"wordpress.post"}],"user-time":"493","service-time":"462","build-version":"25358"},"results":null}});
looks like it's working?
__________________
icq: 395 294 346
http://www.adultsubmitter.eu - submit any adult site to 20 directories from 1 form!
now 20 domains!
http://www.porndeals.eu http://www.ebonybangbros.com
mikke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 11:23 AM   #10
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,077
Quote:
Originally Posted by mikke View Post
returned


looks like it's working?
Yeah - No problems now I am using the single quotes...

Just have to make sure any single quotes in the html are escaped...
EddyTheDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 11:25 AM   #11
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
it's funny how a little thing can keep you busy and cursing for hours....
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 11:41 AM   #12
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,793
Quote:
Originally Posted by Fletch XXX View Post
ive found though, when something like this gets in your way you end up learning something and it will never happen again.
Until you run it on another server and it fucks up all over again in a different way.
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 11:44 AM   #13
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,077
Quote:
Originally Posted by redwhiteandblue View Post
Until you run it on another server and it fucks up all over again in a different way.
lol - I am running this on a local machine and will have to migrate it - I am not looking forward to that!!
EddyTheDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2012, 11:46 AM   #14
FlexxAeon
Confirmed User
 
FlexxAeon's Avatar
 
Industry Role:
Join Date: May 2003
Posts: 3,765
Quote:
Originally Posted by martinsc View Post
it's funny how a little thing can keep you busy and cursing for hours....


my little mantra is "99% of the time it's something small and stupid!'
__________________
flexx [dot] aeon [at] gmail
FlexxAeon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.