Twitter app - Callback URL back to localhost


#1

Hi, I have created an app on https://apps.twitter.com. When I Run my project and it appears window to Authorize my app (https://api.twitter.com/oauth/authorize?oauth_token=xxxxxxxxxxxxxxxxxxxxxxxx) where I have to enter username and password. When I click on Authorize app, then it should take me back to url I have specified in App Settings Callback URL: http://localhost:12345/twitterauth.html.
1- First problem is that it comes error: “Error The client application failed validation: Not a valid URL format.” So I have to use http://127.0.0.1:8000/twitterauth.html.
2- Second problem is I must navigate back to http://localhost:12345/twitterauth.html because I have logic in twitterauth.html which must be executed to move further to fetch AccessTocken and AccessTockenSecret. Also because I need to debug the code fetching AccessTocken and AccessTockenSecret. When I click on Authorize app, then I receive oauth_token and oauth_verifier inside URL but it comes error message: “Page can not be displayed…” Means twitterauth.html is not accessed. So it is not possible for me to go further to fetch AccessTocken and AccessTockenSecret. What should I write in App Settings Callback URL so that it takes me back to twitterauth.html where I continue debugging and executing other code to fetch AccessTocken and AccessTockenSecret.

Thanks a lot in advance.