Hi all,

1- I have a small service running on my server with a little web server. All
I want to know is how I can send a simple HTTP GET request to it through my
form in VFP9, such as :

http://127.0.0.1:8800/?ph=3774&Text=test+123

2-In the same case how can I retreive the HTTP response from the web server
?

TIA

Re: How to send a simple HTTP request by Sietse

Sietse
Tue Jun 22 02:21:29 CDT 2004

Hi Saeed,
Do you have the Internet Transfer Control (ActiveX) that was included in the
Visual Studio 6 installation?
(class : InetCtrl.Inet.1, file: msInet.ocx)

If you do, that's a good way to transfer data ofer the internet

HTH,
Sietse Wijnker

"Saeed" <it@kishwood.com> wrote in message
news:%23XjdsgCWEHA.4024@TK2MSFTNGP09.phx.gbl...
> Hi all,
>
> 1- I have a small service running on my server with a little web server.
All
> I want to know is how I can send a simple HTTP GET request to it through
my
> form in VFP9, such as :
>
> http://127.0.0.1:8800/?ph=3774&Text=test+123
>
> 2-In the same case how can I retreive the HTTP response from the web
server
> ?
>
> TIA
>
>
>
>



Re: How to send a simple HTTP request by Saeed

Saeed
Tue Jun 22 02:56:44 CDT 2004

Hi Sietse,

I don't have the file. I'm currently using VFP8 & VFP9 Beta . But can you
explain more on that ?

Thanks

Saeed

"Sietse Wijnker" <sietse.wijnker@ATsw-software.nl> wrote in message
news:OOeHbmCWEHA.716@TK2MSFTNGP11.phx.gbl...
> Hi Saeed,
> Do you have the Internet Transfer Control (ActiveX) that was included in
the
> Visual Studio 6 installation?
> (class : InetCtrl.Inet.1, file: msInet.ocx)
>
> If you do, that's a good way to transfer data ofer the internet
>
> HTH,
> Sietse Wijnker
>
> "Saeed" <it@kishwood.com> wrote in message
> news:%23XjdsgCWEHA.4024@TK2MSFTNGP09.phx.gbl...
> > Hi all,
> >
> > 1- I have a small service running on my server with a little web server.
> All
> > I want to know is how I can send a simple HTTP GET request to it through
> my
> > form in VFP9, such as :
> >
> > http://127.0.0.1:8800/?ph=3774&Text=test+123
> >
> > 2-In the same case how can I retreive the HTTP response from the web
> server
> > ?
> >
> > TIA
> >
> >
> >
> >
>
>



Re: How to send a simple HTTP request by Eric

Eric
Tue Jun 22 03:24:23 CDT 2004

Hello, Saeed!

HOWTO: Retrieve and Insert HTML Into Memo Field
http://support.microsoft.com/default.aspx?scid=kb;en-us;174524
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: How to send a simple HTTP request by Yoganathan

Yoganathan
Tue Jun 22 03:27:18 CDT 2004

Saeed,

Try using the XMLHTTPRequest object. You can get further details from the
MSDN help. But if you need any assistance, please let me know.

Best Regards,
Y. Sivaram

"Saeed" <it@kishwood.com> wrote in message
news:%23XjdsgCWEHA.4024@TK2MSFTNGP09.phx.gbl...
> Hi all,
>
> 1- I have a small service running on my server with a little web server.
All
> I want to know is how I can send a simple HTTP GET request to it through
my
> form in VFP9, such as :
>
> http://127.0.0.1:8800/?ph=3774&Text=test+123
>
> 2-In the same case how can I retreive the HTTP response from the web
server
> ?
>
> TIA
>
>
>
>



Re: How to send a simple HTTP request by Sietse

Sietse
Tue Jun 22 04:07:57 CDT 2004

Hi Saeed,

If you don't have the OCX, the best way is to use the API-functions that are
used in the KB-article Eric has mentioned in his post.
The ocx is nothing more than a wrapper for these functions.
I don't know how if it's a public licence file, but with some googling
there're some download links for it.
If you are going to use the OCX, the following link might help:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconcontrolfilenames.asp

If the result of the request is XML, the XMLHTTPRequest object as Yoganathan
said is an option, but only if the result of the request is XML. If it's no
(f.i. plain HTML), the result wil not properly load in the DOM of the
requestobject.

Regards,
Sietse Wijnker

"Saeed" <it@kishwood.com> wrote in message
news:u$Quj4CWEHA.1888@TK2MSFTNGP11.phx.gbl...
> Hi Sietse,
>
> I don't have the file. I'm currently using VFP8 & VFP9 Beta . But can you
> explain more on that ?
>
> Thanks
>
> Saeed
>
> "Sietse Wijnker" <sietse.wijnker@ATsw-software.nl> wrote in message
> news:OOeHbmCWEHA.716@TK2MSFTNGP11.phx.gbl...
> > Hi Saeed,
> > Do you have the Internet Transfer Control (ActiveX) that was included in
> the
> > Visual Studio 6 installation?
> > (class : InetCtrl.Inet.1, file: msInet.ocx)
> >
> > If you do, that's a good way to transfer data ofer the internet
> >
> > HTH,
> > Sietse Wijnker
> >
> > "Saeed" <it@kishwood.com> wrote in message
> > news:%23XjdsgCWEHA.4024@TK2MSFTNGP09.phx.gbl...
> > > Hi all,
> > >
> > > 1- I have a small service running on my server with a little web
server.
> > All
> > > I want to know is how I can send a simple HTTP GET request to it
through
> > my
> > > form in VFP9, such as :
> > >
> > > http://127.0.0.1:8800/?ph=3774&Text=test+123
> > >
> > > 2-In the same case how can I retreive the HTTP response from the web
> > server
> > > ?
> > >
> > > TIA
> > >
> > >
> > >
> > >
> >
> >
>
>



Re: How to send a simple HTTP request by Gerben

Gerben
Tue Jun 22 04:21:56 CDT 2004

Saeed,

In addition to all the answers you can get the public wwhttp.prg from west
wind. http://www.west-wind.com/wwipstuff.asp
That will do the trick for you as well.

Gerben Kessen.



"Saeed" <it@kishwood.com> wrote in message
news:%23XjdsgCWEHA.4024@TK2MSFTNGP09.phx.gbl...
> Hi all,
>
> 1- I have a small service running on my server with a little web server.
All
> I want to know is how I can send a simple HTTP GET request to it through
my
> form in VFP9, such as :
>
> http://127.0.0.1:8800/?ph=3774&Text=test+123
>
> 2-In the same case how can I retreive the HTTP response from the web
server
> ?
>
> TIA
>
>
>
>



Re: How to send a simple HTTP request by Saeed

Saeed
Tue Jun 22 04:28:48 CDT 2004

Thanks Eric.

That was a great help (as always) .


"Eric den Doop" <ericdendoop@xspamblockxfoxite.com> wrote in message
news:#GxeUJDWEHA.1380@TK2MSFTNGP12.phx.gbl...
> Hello, Saeed!
>
> HOWTO: Retrieve and Insert HTML Into Memo Field
> http://support.microsoft.com/default.aspx?scid=kb;en-us;174524
> --
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
>
>



Re: How to send a simple HTTP request by Saeed

Saeed
Tue Jun 22 04:46:18 CDT 2004

Thanks,

I am trying to work this out on MSDN. Meanwhile I was wondering if you can
point me to a sample code in VFP.

TIA


"Yoganathan Sivaram" <ysivaram@remove.this.for.spam.yahoo.com> wrote in
message news:eYBRpKDWEHA.1048@tk2msftngp13.phx.gbl...
> Saeed,
>
> Try using the XMLHTTPRequest object. You can get further details from the
> MSDN help. But if you need any assistance, please let me know.
>
> Best Regards,
> Y. Sivaram
>
> "Saeed" <it@kishwood.com> wrote in message
> news:%23XjdsgCWEHA.4024@TK2MSFTNGP09.phx.gbl...
> > Hi all,
> >
> > 1- I have a small service running on my server with a little web server.
> All
> > I want to know is how I can send a simple HTTP GET request to it through
> my
> > form in VFP9, such as :
> >
> > http://127.0.0.1:8800/?ph=3774&Text=test+123
> >
> > 2-In the same case how can I retreive the HTTP response from the web
> server
> > ?
> >
> > TIA
> >
> >
> >
> >
>
>



Re: How to send a simple HTTP request by Saeed

Saeed
Tue Jun 22 04:51:59 CDT 2004

Thanks a lot.

I think I'll use Eric's solution with a little modification on the code to
suite my app.

Saeed Paksima

"Sietse Wijnker" <sietse.wijnker@ATsw-software.nl> wrote in message
news:#Ru36hDWEHA.2544@TK2MSFTNGP10.phx.gbl...
> Hi Saeed,
>
> If you don't have the OCX, the best way is to use the API-functions that
are
> used in the KB-article Eric has mentioned in his post.
> The ocx is nothing more than a wrapper for these functions.
> I don't know how if it's a public licence file, but with some googling
> there're some download links for it.
> If you are going to use the OCX, the following link might help:
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/htm
l/vbconcontrolfilenames.asp
>
> If the result of the request is XML, the XMLHTTPRequest object as
Yoganathan
> said is an option, but only if the result of the request is XML. If it's
no
> (f.i. plain HTML), the result wil not properly load in the DOM of the
> requestobject.
>
> Regards,
> Sietse Wijnker
>
> "Saeed" <it@kishwood.com> wrote in message
> news:u$Quj4CWEHA.1888@TK2MSFTNGP11.phx.gbl...
> > Hi Sietse,
> >
> > I don't have the file. I'm currently using VFP8 & VFP9 Beta . But can
you
> > explain more on that ?
> >
> > Thanks
> >
> > Saeed
> >
> > "Sietse Wijnker" <sietse.wijnker@ATsw-software.nl> wrote in message
> > news:OOeHbmCWEHA.716@TK2MSFTNGP11.phx.gbl...
> > > Hi Saeed,
> > > Do you have the Internet Transfer Control (ActiveX) that was included
in
> > the
> > > Visual Studio 6 installation?
> > > (class : InetCtrl.Inet.1, file: msInet.ocx)
> > >
> > > If you do, that's a good way to transfer data ofer the internet
> > >
> > > HTH,
> > > Sietse Wijnker
> > >
> > > "Saeed" <it@kishwood.com> wrote in message
> > > news:%23XjdsgCWEHA.4024@TK2MSFTNGP09.phx.gbl...
> > > > Hi all,
> > > >
> > > > 1- I have a small service running on my server with a little web
> server.
> > > All
> > > > I want to know is how I can send a simple HTTP GET request to it
> through
> > > my
> > > > form in VFP9, such as :
> > > >
> > > > http://127.0.0.1:8800/?ph=3774&Text=test+123
> > > >
> > > > 2-In the same case how can I retreive the HTTP response from the web
> > > server
> > > > ?
> > > >
> > > > TIA
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: How to send a simple HTTP request by George

George
Tue Jun 22 15:55:15 CDT 2004

Function httpPost(webSite, xmlData)
Try
webServer = CREATEOBJECT("Msxml2.XmlHttp")
webServer.Open("POST",webSite,.F.)
webServer.SetRequestHeader("Content-Type","text/xml")
webServer.Send(xmlData)
response = webServer.ResponseText
Catch To oError
MessageBox(oError.Message,16,"Error")
EndTry

Return response
EndFunc


Saeed wrote:
> Hi all,
>
> 1- I have a small service running on my server with a little web server. All
> I want to know is how I can send a simple HTTP GET request to it through my
> form in VFP9, such as :
>
> http://127.0.0.1:8800/?ph=3774&Text=test+123
>
> 2-In the same case how can I retreive the HTTP response from the web server
> ?
>
> TIA
>
>
>
>