curl POST之後遇到302重導的問題


curl POST資料到主機後,主機回應302時,如果只是用-L參數會得不到想要的資料。
這時候要加上--post302參數。

curl -L --post302 {POST data} {url}

沒有留言:

張貼留言