search

Home  >  Q&A  >  body text

php - interface error 404

I wrote an interface that requires the app to send data via post and store it in the database. However, there is no problem on the Android side. Why does iOS keep reporting an error, 404? Has anyone encountered this before?

某草草某草草2799 days ago818

reply all(6)I'll reply

  • 迷茫

    迷茫2017-05-16 12:04:54

    Use fiddler to capture the packet and see which path is requested by ios. Maybe ios has written the wrong path

    Compare the requests of ios and Android

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 12:04:54

    Request404It means that the address of this interface was not found. Is the interface address written wrong?

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 12:04:54

    Strictly speaking, 404 is not an interface error. It means that the connection port is not found. It is recommended that you capture the packet and take a look.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 12:04:54

    Send a get request from ios

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 12:04:54

    Is it sporadic, or is it 404 for every ios request? If it is sporadic, it may be that the amount of data passed to the interface through post is too much. This is also a possible reason. I used node.js some time ago. I have encountered this occasional situation when working on the backend, please try it based on your own situation

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 12:04:54

    There is an error in the backend or the return value is incorrect

    reply
    0
  • Cancelreply