Getting 401 on Twitter OAuth POST requests

前端 未结 6 1325
星月不相逢
星月不相逢 2020-12-18 05:27

I am trying to use Twitter OAuth and my POST requests are failing with a 401 (Invalid OAuth Request) error.

For example, if I

6条回答
  •  旧巷少年郎
    2020-12-18 05:52

    I just finished implementing twitter OAuth API from scratch using Java. Get and post requests work OK. You can use this page http://www.hueniverse.com/hueniverse/2008/10/beginners-gui-1.html to check signature and HTTP headers. Just enter your keys and tokens and check output. It seems twitter works exactly as described on this post. Be careful with spaces and UTF-8 symbols, for example Java encodes space as "+" but OAuth requires %20

提交回复
热议问题