V
V
ValeraValera2017-07-26 13:22:49
PHP
ValeraValera, 2017-07-26 13:22:49

In what format does the server send data?

In what format does the server send the data?
quotes.weltrade.com/export/quotes.json here seems to be Json , but it's kind of strange
How to pull the first digit after eurusd into a variable
here is the request code

<?php
      $ch = curl_init('http://quotes.weltrade.com/export/quotes.json');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, false );
        curl_setopt($ch, CURLOPT_POST, true);
      $result = curl_exec($ch);
      $course = json_decode($result);
      var_dump($course);
      curl_close($ch);

 ?>

Here is what is output
quotes()int(1)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2017-07-26
@p00h

Obviously it's JSONP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question