Re: WOHTTPConnection & WORequest
Re: WOHTTPConnection & WORequest
- Subject: Re: WOHTTPConnection & WORequest
- From: Patrick Middleton <email@hidden>
- Date: Thu, 27 Jul 2006 17:59:13 +0100
On 27 Jul 2006, at 17:43, David Griffith wrote:
Hi Jerry,
Well, I have no control over the other website. What I need to do
is this:
In my own WO App, I have a page which displays some information
from the database about a domain name and who it is associated with.
I would like to have a button on that page that can be clicked
which will then send a request to the 3rd party web site (which is
just a standard website). I want to submit a form to it as if I
had gone to the page, entered my details in the form and clicked
submit. Except I don't want to manually enter my details, I want
to submit the form without going to the actual webpage itself (so
effectively I want to create a page that emulates the actual page
on that webserver and submit it with form values filled in already
(rather than anyone having to manually enter them).
Obviously that webserver will return a normal HTTP response page
(HTML page) which is the page that I want to get back to my
original WO App whereupon I will parse it for the information I
need and place that information on my WOComponent as necessary.
I have done this with another programming tool in the past and
built Google's language tools into my own application. I am trying
to do something similar with WebObjects but just can't find the
correct way to do it. Perhaps WebServices is what I need. I will
look into it further.
To give a more step-by-step idea of what I am trying to do:
User looks up a record in my app which contains a variable called
'domainname'.
They click the button that says 'Lookup'.
My WOApp then needs to generate a HTML form that can be submitted
with some form field values to a URL that I specify, but with no
user interaction of any kind.
I need to get the response page (HTML) from that URL back into my
WO App.
From there I have no problem as I can parse it and get the info I
need.
Regards,
David.
Of course, if you were really devious, you could adapt AJAX
technology to do what you need.
http://developer.apple.com/internet/webcontent/xmlhttpreq.html
'domainname' -- are you by chance getting someone to type in their
email address, and then trying to validate an MX record to see if
it's real or not?
---
Regards Patrick
OneStep Solutions Plc
www.onestep.co.uk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden