I am creating a chat application and I am using a free webhosting to store online users in a database I am I have the following structure:
1) 2) 3) When it disconnects, remove the user from Now in the application I have a function If I am using a local IIS server for URL, but when I try the free web hosted URL, then give me a Update: 1) Free hosting service is using Apache as a webserver 2) You can recommend another way to get the web page. I suggest using a tool like capturing your browser's request, and then Trying to simulate in code. You can root your programmatic requests through the use of technology through technology. Quick: index.php Where I find users online in this format:
& lt ; Users & gt; & Lt; Name & gt; & Lt; / Name & gt; & Lt; IP & gt; & Lt; / IP & gt; & Lt; / User & gt;
add.php? When the user = adds it, to add a new user to the database.
remove.php? User = .
GetUsers () like this:
string url = @ "http: // .. ./index.php "; System.Net.WebRequest req = System.Net.WebRequest.Create (url); System.Net.WebResponse res = (System.Net.WebResponse) req.GetResponse ();
406 not acceptable error That's why I think I need to make some headers or some things to be a fake real browser.
req.prxy = new WebProxy ("http: // localhost: 8888", incorrect);
Localhost: 8888 is the default address of the Fidler.
No comments:
Post a Comment