|
yes, of course it's possible. Most encryption/decryption uses standard known algorithms. So you need to find an algorithm that you have an implimentation of in perl and in VB, or you need to write one.
your subject line is ridiculous. Everyone here wants help. Try putting something that means something.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I am very new to web development and i am finding difficulty with webrequest and querystring in vb.net.
I am working on an application which will pull data from a URL. The data will come with 2 variables. "from" and "text" that is the sender of the data and the text of the data.
I have a desktop apllication which is supposed to read this data from the url and i am pretty lost here.
how do i use webrequest and/or querystring to read the data from the url and pick the two variables.
for instance i want to read them like this
Dim message_originator As String = context.request.querystring("from")
Dim message As String = context.request.querystring("text")
I don really know what to do to read them as above into the variables.
Any help please guys?
It is not who i am underneath but what i do that defines me!
modified on Friday, June 26, 2009 12:22 AM
|
|
|
|
|
How is the web request getting into a winforms app ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
i use the following to get it but i don think its right.
<
Public Sub GetNewMsg()
Dim sOutput As String
Dim sURL As String = "http://www.something.com/noticeboard"
Try
Dim objNewRequest As WebRequest = HttpWebRequest.Create(sURL)
Dim objResponse As WebResponse = objNewRequest.GetResponse
Dim objStream As New StreamReader(objResponse.GetResponseStream())
sOutput = objStream.ReadToEnd()
Dim message_originator As String = context.request.querystring("from")
Dim message As String = context.request.querystring("text")
'place code to read specific string token you need here
'for example code to insert into database etc. just see what you have in the
'string if fetch was successful and then you'll know how to readi specific string
Catch eUFE As UriFormatException
sOutput = "Error in URL Format: [" & sURL & "]" & NewLine() & eUFE.Message
Catch eWEB As WebException
sOutput = "Error With Web Request: " & NewLine() & eWEB.Message
Catch e As Exception
sOutput = e.ToString
Finally
MessageBox.Show(sOutput)
End Try
End Sub
>
Is it possible for you to write a small function that accepts data from a url into a winforms app the right way cos mine is just not working!
It is not who i am underneath but what i do that defines me!
modified on Friday, June 26, 2009 1:09 AM
|
|
|
|
|
You're doing a post to a URL and looking for the query string on the response ? That sounds weird to me. Any change of URL is a new request/response, I'd have thought.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Christian,
I am really lost in what i am doing. Please if u can help me out with retrieving from the url where i can access the query string, i will be able to continue from there.
thanks
It is not who i am underneath but what i do that defines me!
|
|
|
|
|
I honestly don't think this is possible. There's nothing on the query string when you send it, so I don't expect there will ever be a querystring on the response. I think you're barking up the wrong tree.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
please so how do i go about retrieving the data from the url then from my winforms app?
It is not who i am underneath but what i do that defines me!
|
|
|
|
|
The only data on the URL, is the data you put there. This is the core issue here, which is why I said you're totally lost. What makes you think the URL will change when the data is posted back to you ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Sounds like you are confused about request and response. You get query string only when you are getting a request. Assume you are writing a HTTP server and someone requesting to your program with query string, you will get it. In your case, you are the one who is requesting and you only get a response which won't have query strings. You will get the output of the URL you requested.
Or did I got your question wrong?
|
|
|
|
|
You got my question right. Now my problem is how do i get the data from the url? the winforms app has to read from the url whenever data is pushed there by a sender.
It is not who i am underneath but what i do that defines me!
|
|
|
|
|
We're both saying the same thing. The URL will not change, so there will be no query string data. Have you run this through the debugger ? The URL does not change, between a request and a response, which is what your code does.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Thanks guys i get u but is there a different way i can use to achieve what i want to do please.
Ok a remote server will be posting data to the url for me to read. I have setup the url like http://www.myownserver.com/noticeboard
They will be pushing the data here for me to use. I dont know when the data will be available but i know the variables. 2 variables will be available for me, one for the sender and the other the text named "from","text".
Is there a way out. If its impossible then i think i have to go crazy now cos i really need to do this.
Is there any other way in vb that i can use or it is not possible in vb.net?
It is not who i am underneath but what i do that defines me!
|
|
|
|
|
king gamo wrote: Is there any other way in vb that i can use or it is not possible in vb.net?
VB.NET has nothing to do with it. If you wrote the site, then push the data you want back, inside the page. Or better yet, ditch this rubbish and write a web service.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
A remote user will request a URL with some query strings. Then the page will generate some data. Now you want to get this data in your windows application. You don't know what query string he used. You don't know when user is requesting that page.
Is that what you are trying to do? If yes, it is impossible.
All you can do is to persist the query strings used in a database or somewhere else. Your windows application can look this DB frequently to see any new data available. If new data is there, take the query strings and send a request to the URL for getting response.
|
|
|
|
|
I am new to mobile communication.
I just want to know that how to start sending message or reading
form sim card by using AT commands and writting a source code in VB.
If I have connected my mobile to pc as GSM modem through usb cable.
Any type of help will be welcomed
Thanks
|
|
|
|
|
Try Using VB.NET to Decode PDU string[^]
If that is no good for goodness sake use Google or Bing or something searching on sms to mobile vb.net generated a shedload of hits.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Henry Minute wrote: shedload
ahahaha. Nice!
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I have done googling alot. And doing this from the last one month.
But I didn't understand how I can send message from the VB.net code??
Are there any built in functions in VB.Net that send sms??
W8ing reply!
|
|
|
|
|
s426 wrote: Are there any built in functions in VB.Net that send sms??
No
|
|
|
|
|
Sir!!
I have readed this site including many other.
http://www.developershome.com/sms/howToSendSMSFromPC.asp
Now acting on instructions one by one.
I reached on the line
"Here is a description of what is done in the above example:
Line 1: "AT" is sent to the GSM / GPRS modem to test the connection. The GSM / GPRS modem sends back the result code "OK" (line 2), which means the connection between the HyperTerminal program and the GSM / GPRS modem works fine.""
when I did this step then I got 'ok'.
But next 13 steps giving me error....
after line 13 (on that page)
it is written there
"To send SMS messages from an application, you have to write the source code for connecting to and sending AT commands to the mobile phone or GSM/GPRS modem, just like what a terminal program does. You can write the source code in C, C++, Java, Visual Basic, Delphi or other programming ."'
In this paragraph I didn't get the point( you have to write the source code for connecting to and sending AT commands to the mobile phone ).
To understand this I have googled again, but all in vain
Now please help me .. After alot of search I did came here. So I am following the terms and conditions I think
|
|
|
|
|
s426 wrote: To send SMS messages from an application, you have to write the source code for connecting to and sending AT commands to the mobile phone...[sic]
Ok, so what don't you get? You have to write a program that communicates with your mobile device to send SMS messages. Do you know VB.Net? Are you sure you can handle a project of the size and complexity?
|
|
|
|
|
You didn't search very hard, did you?
There is an article here on CP that uses vb.net to send AT commands to a mobile. Since you know how to google, I'll leave it to you to find it for yourself.
If you do find it, and are unable to understand it, then I can only suggest that you speak to whoever set you this assignment, and ask to be given something else to do. I'd also consider something other than programming as a career if I were you.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Sir I have worked alot on C++ and .net2003
I am also doing a library management system project using RFID
and I think that one is the more complex
Anyhow I can do this, I believe.
Sir I have not worked on VB.Net till now.But I believe that nobody there that knows swimming before diving into river
Sir kindly help me that from which link I can download setup of VB.Net??
I have searched but couldn't found.
And also give me some usefull reading papers regarding this project if possible..
w8ing for reply.
|
|
|
|
|
s426 wrote: Sir kindly help me that from which link I can download setup of VB.Net??
VB.Net 2008 Express[^]
All .net languages are very much similar, if you have worked with .net extensively as you have claimed, you would be aware of VB.Net. Surely working with .net you have worked with Visual Studio...
|
|
|
|