F4C3 (OP)
Newbie
Offline
Activity: 31
Merit: 0
|
|
May 12, 2011, 01:38:57 AM |
|
Does anyone else have trouble pulling a jQuery.get() from the mtgox /code/data/ticker.php? For the life of me I couldn't figure out why my jsonp request failed repeatedly. I put together a relay script to return it correctly, at least for my scripts. Feel free to use it. http://btc.jalder.com/mtgox.phpexample usage: $(document).ready(function() { $('#update').click(function(){ $.get('http://btc.jalder.com/mtgox.php',null,function(data){ $.each(data, function() { $.each(this, function(k,v) { //Do something interesting with the data }); }); },'jsonp'); return false; }); });
|
|
|
|
|
|
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
nodemaster
|
|
May 12, 2011, 06:33:04 AM |
|
Yesterday i found that there was a redirect to HTTPS if you were accessing via HTTP. This redirect however was broken (missing trailing slash). I changed my scripts to use HTTPS and everything works as expected. Hope that helps?
|
|
|
|
trumpetx
Member
Offline
Activity: 99
Merit: 10
|
|
May 12, 2011, 01:20:34 PM |
|
It times out for my android app all the time
|
|
|
|
nodemaster
|
|
May 12, 2011, 01:22:49 PM |
|
It times out for my android app all the time Same here. I guess its using the HTTP connection as there is no confidential data transmitted.
|
|
|
|
F4C3 (OP)
Newbie
Offline
Activity: 31
Merit: 0
|
|
May 12, 2011, 01:57:36 PM |
|
I think one of the biggest issues with the way mtgox put together their feed is that their server requires you to post for a jsonp if you are doing cross-domain scripting, which is correctly. However, when they return the content type, it comes back as text/html. This causes the $.get() in jQuery to break as it was expecting the headers to read application/json, I'd love if magical tux would correct the headers sent back.
|
|
|
|
Cryptoman
|
|
May 12, 2011, 04:55:26 PM |
|
Yesterday i found that there was a redirect to HTTPS if you were accessing via HTTP. This redirect however was broken (missing trailing slash). I changed my scripts to use HTTPS and everything works as expected. Hope that helps?
This fixed things for me too. I also had to disable SSL certificate validation.
|
"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
|
|
|
error
|
|
May 12, 2011, 07:29:19 PM |
|
It times out for my android app all the time Android app was updated on the market yesterday.
|
3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
|
|
|
Valhalla1
Newbie
Offline
Activity: 51
Merit: 0
|
|
June 19, 2011, 04:53:25 AM Last edit: June 19, 2011, 05:38:27 AM by Valhalla1 |
|
I'm having issues with a php/curl script I've been using to grab the mtgox ticker. It was working fine and now it fails, I believe it is a problem with the ssl certificate.
whats up with that? is there a cert problem for anyone else that popped up as of Saturday?
|
|
|
|
Valhalla1
Newbie
Offline
Activity: 51
Merit: 0
|
|
June 19, 2011, 05:34:14 PM |
|
ugh... now the ticker seems to be 'stuck' on $17.51 for "last" on https://mtgox.com/code/data/ticker.phpeven though bitcoins are trading in the $12.xx on mtgox. wtf
|
|
|
|
|