I’m quite familiar with php and when submitting variables with data values on a URL from a form in php using the ‘GET’ function I would call it like
http://localhost/sms/incoming.php?sender=$originator&receiver=$recipient&msgdata=$messagedata&recvtime=$receivedtime&msgid=$messageid
where the variables being sent by the get function are
sender=$originator&receiver=$recipient&msgdata=$messagedata&recvtime=$receivedtime&msgid=$messageid
However I don’t know how to submit them on a plain HTML URL that doesn’t use any scripting language. I would like to submit the values to a plain HTML page so that my server listens to the request and gets to read the data values contained on the URL. My server is on VB.NET but does not support any scripting language.
I just want it to be listening to any HTTP request then reading the data contained in the ‘GET’ function that sent the data in the request. Please help me know how to submit data on a plain HTML URL or how to read data from a URL in VB.Net because any of them can work on my application . Thanks.
I have to admit that I do not fully understand your question.
You say that your server does not support any scripting language. Do you mean that your server does not support any programming language? VB.NET is a language, so I am a little confused.
The first part of your question is not clear, because submitting the values is very easy: just type the URL with values in the address bar of your browser, or put them (in the same form) as an address, for any program which is able to make a HTTP request (wget, for example).
Instead of typing the values directly in the link, you may use a
<form>element in HTML. Just define that the method should be GET, instead of default POST:An important question is: What language you have available on the ‘requesting’ part? Do you send requests manually? From PHP? Are the requests sent by users, from a HTML page?
For the second part of your question, you already received an answer by Robert Beaubien: You can get them from the Context.Request.QueryString object
You have responded that it does not work for you. So, the question is: What type of server is listening to your requests? What language have you available?
In that other question you have included some code, which suggests that you can program your server in VB.NET.
Is that code related to your problem asked here?
If yes, then can you debug what is the variable
sbufferif your issue a request with parameters? (Type this in your browser’s address bar.)If your
sbuffercontains the same string as you have typed in the browser, then just parse the string after a question mark (?), split it by ampersands (&) and by equal signs (=), and you have all your parameters.