jinyistudio Well-Known Member Licensed User Longtime User Jun 4, 2016 #1 Hi I try post some data with wget from command line of the raspbian. I have example from google as following. wget --post-data="user=user1&pass=pass1&submit=Login" http://domain.com/path/page_need_login.php I will have a Sockethandle in the B4J to receive the data but I don't know how to modify url address(the bold at the above).
Hi I try post some data with wget from command line of the raspbian. I have example from google as following. wget --post-data="user=user1&pass=pass1&submit=Login" http://domain.com/path/page_need_login.php I will have a Sockethandle in the B4J to receive the data but I don't know how to modify url address(the bold at the above).
Erel B4X founder Staff member Licensed User Longtime User Jun 5, 2016 #2 What do you mean with a Sockethandle? Do you mean a Server Handle? If yes then you can access it with req.GetParameter. Upvote 0
What do you mean with a Sockethandle? Do you mean a Server Handle? If yes then you can access it with req.GetParameter.
jinyistudio Well-Known Member Licensed User Longtime User Jun 5, 2016 #3 Yes, Server Handle ! My mean is how to setting this url : http://domain.com/path/page_need_login.php which will connect to my b4j server handle. Upvote 0
Yes, Server Handle ! My mean is how to setting this url : http://domain.com/path/page_need_login.php which will connect to my b4j server handle.
B billzhan Active Member Licensed User Longtime User Jun 5, 2016 #4 FYI: https://www.b4x.com/android/forum/threads/creating-a-proxy.63292/#post-400026 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 5, 2016 #5 Is the B4J server listening on port 80? Upvote 0
jinyistudio Well-Known Member Licensed User Longtime User Jun 6, 2016 #6 My server port always set 8000 Or 8001 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 6, 2016 #7 So the url should be http://domain.com:8000/... Upvote 0
jinyistudio Well-Known Member Licensed User Longtime User Jun 6, 2016 #8 Hi It's OK ! wget --post-data="method=detected" http://192.168.1.168:8001/motion Upvote 0