search

Home  >  Q&A  >  body text

java 如何转发请求

PHP中文网PHP中文网2835 days ago363

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-04-18 10:43:11

    Request another machine? ? ? You can’t forward it!
    If you forward it, it is just a request, and the displayed address bar will not change. The front end should not be able to get b.com/aaa
    You should be able to get it with redirection, but the content in the request should be gone.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:43:11

    Suppose the current server is A and the other server is B. Let B directly make an external interface for A to use. A then returns the B processing result to the front end,
    or the front end directly requests B.
    When initiating WeChat payment, you want B to initiate a prepaid order request to A and then to the front end?
    If this is the case, you can directly request B from the front end. WeChat will not detect the server that initiated the prepaid order, but will only detect whether the URL of the initiating page is the WeChat payment authorized directory

    reply
    0
  • Cancelreply