search

Home  >  Q&A  >  body text

php - curl, http request returns json truncated

curl Initiates a HTTP request, and the returned json (more than 1024) is truncated.
Is there any good way to get the complete json.

巴扎黑巴扎黑2779 days ago1313

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-24 11:35:56

    Use -o to output to the specified file
    curl -o output.txt your_url

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-24 11:35:56

    1024 characters or bytes? It can be said with certainty that PHP does not have this limitation, there is a problem with your code, or there is a limitation on the server side.

    reply
    0
  • Cancelreply