POST with HTTPBuilder -> NullPointerException?

后端 未结 3 1923
终归单人心
终归单人心 2021-01-04 22:18

I\'m trying to make a simple HTTP POST request, and I have no idea why the following is failing. I tried following the examples here, and I don\'t see where I\'m going wrong

3条回答
  •  星月不相逢
    2021-01-04 23:10

    This works:

        http.request(POST) {
            uri.path = '/search/'
    
            send URLENC, [string1: "", string2: "heroes"]
    

提交回复
热议问题