AllExperts > Experts 
Search      
Active Server Pages Programming (ASP)
Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Active Server Pages Programming (ASP) Answers
Question Library

Ask a question about Active Server Pages Programming (ASP)
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Ashvin Johnson
Expertise
I can handle all the queries about File handling, ASP with XML, XSLT, ASP with SQL server 2000 and ASP links.

Experience
I have 3 years of experience in Active server pages programming. I have 2 years of experience in .net applications. I have developed many sites in ASP.net. Please mention your platform on which you are working. for e.g. ASP Classic or ASP.NET

Organizations belong to
I am working in a Data conversion company. We work for the Internet content preparation. My job is to develope utilities to increase production with accuracy.

 
   

You are here:  Experts > Computing/Technology > Business Software > Active Server Pages Programming (ASP) > Form Gateway

Active Server Pages Programming (ASP) - Form Gateway


Expert: Ashvin Johnson - 2/5/2005

Question
I have an interesting little problem that may require some out of the box thinking; your help would be very much appreciated. I subscribe to a service that allows me to easily access arrest and criminal background databases online. There is a simple HTML form that allows me to plug in the name and date of birth and it will return the information. It works fine from my computer, and I set up a small webpage using that form's input names to let me do this from my cell phone. The problem is that the form method "get" points to a form action that is an https site - it requires a secure connection. My phone cannot establish a secure connection, so I need to create some sort of a gateway by which the form action would point to something on my site, and my site would then establish the secure connection, retrieve the data, and pass it back to the form so I can see it on my cell phone. I understand the concept of how this would work, but I don't know what tools I would use to create it. Can you point me in the right direction of a solution for this problem?

Thank you in advance for your assistance.

Answer
Hello Steven,

I like your Project very much.

You have not Mentioned in which platform you are working. I basically works on vb.net and ASP.net Paltform so for that you have one class i.e. webResponse.

You have to Play with this class to get the values from the https website and then write it on the normal http site and that will be avaiable on the cell phone. This is not tested you have to work on your own, so please do'nt mind.

Here is little code which you have to modify accordingly

Dim URL as String = "https://yourwebsitewith the parameters"
Dim page as String
Try
Dim PageRequest as HttpwebRequest = Ctype(WebRequest.Create(URL), HttpWebRequest)

Dim PageResponse as WebResponse = PageRequest.Getresponse()
Dim r as New StreamReader(PageResponse.GetResponseStream())
Page = r.ReadToEnd()
r.Close()
catch Err as Exception
Response.Write(Err.ToString())
Return
End try

'define Tthe reqular expression
Dim TitlePattern as String = "<title>(?<match>.*?)</title>"
Dim titleRegex as New Regex(TitlePattern, RegExOptions.Ignorecase or RegexOptions.SingleLine)

'Find the title
if TitleMatch.Sucess then
Response.write("Found title: " & Titlematch.groups("match").Value)
end if  

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.