Ok, well as I said in the title I am trying to get vb.net to connect to a server sounds easy right well apparently not I have searched the web for the last 4 hours with stuff from proxy servers to like stuff to xmlhttp requests non of which work in vb.net even though it says it does.
I hope someone here is familiar with VB.NET so what I am trying to do is have a program in vb.net connect to a script via port 80 on a server so like connect to this address: http://www.domain.com/scriptname.php?datatosend=thedata and then get the returned string from the server. I had saw a script that it said worked in vb.net which was similar to ajax or xmlhttp but the function didn't exist in vb.net I am assuming it was asp.net or something.
I last tried using a web browser tool and then getting it to connect to the script and then extracting the data from the web browser, which works only thing is that when you do that vb.net prepends and appends crap to the returned variable like "<html><head></head><body>" and "</body></html>" even if this is not there I tried connecting to a empty .txt file that only had this in it: "success oh ya" and I got returned:
I have tried replacing that excess using the string.replace() function with empty space but it does not seem to be working.
Now I wouldn't expect that microsoft would forget to add support for this to the wonderful vb.net language but I am at a loss to figure out how to do this if anyone can please help please help me!
I hope someone here is familiar with VB.NET so what I am trying to do is have a program in vb.net connect to a script via port 80 on a server so like connect to this address: http://www.domain.com/scriptname.php?datatosend=thedata and then get the returned string from the server. I had saw a script that it said worked in vb.net which was similar to ajax or xmlhttp but the function didn't exist in vb.net I am assuming it was asp.net or something.
I last tried using a web browser tool and then getting it to connect to the script and then extracting the data from the web browser, which works only thing is that when you do that vb.net prepends and appends crap to the returned variable like "<html><head></head><body>" and "</body></html>" even if this is not there I tried connecting to a empty .txt file that only had this in it: "success oh ya" and I got returned:
| Code: |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY><PRE>success oh ya</PRE></BODY></HTML> |
I have tried replacing that excess using the string.replace() function with empty space but it does not seem to be working.
Now I wouldn't expect that microsoft would forget to add support for this to the wonderful vb.net language but I am at a loss to figure out how to do this if anyone can please help please help me!
