473,378 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Internet Transfer Control, only option?

Hi

Is itc the only option if one needs to post to a web site from within
access? I am looking for something better if there is such a thing.

Thanks

Regards
Nov 13 '05 #1
14 2959
John wrote:
Hi

Is itc the only option if one needs to post to a web site from within
access? I am looking for something better if there is such a thing.


Sure, don't mess with that control and instead use the WinInet API directly. Much easier
to distribute. Search on "WinInet API".

You are advised that it isn't good etiquette to cross-post to all these groups. Pick the
most appropriate one or two; the first two in your list was sufficient.

--
'---------------
'John Mishefske
'---------------
Nov 13 '05 #2
Thanks for that. I have searched but have not found an example to post to a
url from behind an isa 2000 server. Any idea where I can find an example?

Thanks

Regards

"John Mishefske" <mi************@JUNKtds.net> wrote in message
news:42**********@newspeer2.tds.net...
John wrote:
Hi

Is itc the only option if one needs to post to a web site from within
access? I am looking for something better if there is such a thing.


Sure, don't mess with that control and instead use the WinInet API
directly. Much easier to distribute. Search on "WinInet API".

You are advised that it isn't good etiquette to cross-post to all these
groups. Pick the most appropriate one or two; the first two in your list
was sufficient.

--
'---------------
'John Mishefske
'---------------

Nov 13 '05 #3
John wrote:
Thanks for that. I have searched but have not found an example to post to a
url from behind an isa 2000 server. Any idea where I can find an example?


Here's a couple of sites:

http://www.codeproject.com/internet/...httpclient.asp
http://www.developerfusion.com/show/3272/3/

--
'---------------
'John Mishefske
'---------------
Nov 13 '05 #4
John wrote:
Thanks for that. I have searched but have not found an example to post to a
url from behind an isa 2000 server. Any idea where I can find an example?

Here's a couple of sites:

http://www.codeproject.com/internet/...httpclient.asp
http://www.developerfusion.com/show/3272/3/

--
'---------------
'John Mishefske
'---------------
Nov 13 '05 #5
This is all .net stuff and none of it relates to vba/access as far as I can
see.

Regards

"John Mishefske" <mi************@JUNKtds.net> wrote in message
news:42**********@newspeer2.tds.net...
John wrote:
Thanks for that. I have searched but have not found an example to post to
a url from behind an isa 2000 server. Any idea where I can find an
example?

Here's a couple of sites:

http://www.codeproject.com/internet/...httpclient.asp
http://www.developerfusion.com/show/3272/3/

--
'---------------
'John Mishefske
'---------------

Nov 13 '05 #6
John wrote:
This is all .net stuff and none of it relates to vba/access as far as
I can see.


You can use the MSXML.dll library to make an HTTP POST or GET request. Is that
what you're talking about? I use that to send data transfers from an Access app
to a java servlet but it should work for any URL.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #7
I just need to post some data to a url. Are there any code examples
somewhere?

Thanks

Regards

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:OZ****************@newssvr11.news.prodigy.com ...
John wrote:
This is all .net stuff and none of it relates to vba/access as far as
I can see.


You can use the MSXML.dll library to make an HTTP POST or GET request. Is
that what you're talking about? I use that to send data transfers from an
Access app to a java servlet but it should work for any URL.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #8
John wrote:
I just need to post some data to a url. Are there any code examples
somewhere?

Dim oHttpPost As Object
Dim POSTData As String

Set oHttpPost = CreateObject("Microsoft.XMLHTTP")
oHttpPost.Open "POST", "Your URL", False
oHttpPost.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"

POSTData = "RequestType=SAMPLE_POST" & _
"&Field1= " & Variable1 & _
"&Field2=" & Variable2 & _
"&Field3=" & Variable3 & _
"&Field4=" & Variable4 & _
"&Field5=" & Variable5

oHttpPost.Send (POSTData )

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #9
Hi Rick

Many thanks for that. Any way to get the return data from site (itc
equivalent GetChunk) and any error code (itc ResponseCode)?

Thanks

Regards

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:dy****************@newssvr11.news.prodigy.com ...
John wrote:
I just need to post some data to a url. Are there any code examples
somewhere?

Dim oHttpPost As Object
Dim POSTData As String

Set oHttpPost = CreateObject("Microsoft.XMLHTTP")
oHttpPost.Open "POST", "Your URL", False
oHttpPost.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"

POSTData = "RequestType=SAMPLE_POST" & _
"&Field1= " & Variable1 & _
"&Field2=" & Variable2 & _
"&Field3=" & Variable3 & _
"&Field4=" & Variable4 & _
"&Field5=" & Variable5

oHttpPost.Send (POSTData )

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #10
John wrote:
Hi Rick

Many thanks for that. Any way to get the return data from site (itc
equivalent GetChunk) and any error code (itc ResponseCode)?


The object will have a Status responseText properties that you can read
after the "Send".

If oHttpPost.Status < 300 Then 'Response is OK
someStringVariable = oHttpPost.responseText
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #11
Hi Rick

Thanks for this. Very useful and all works fine. One last thing, is there a
way to add a proxy server's information somewhere ie for when making calls
from behind an isa server?

Thanks

Regards
"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:6D*****************@newssvr12.news.prodigy.co m...
John wrote:
Hi Rick

Many thanks for that. Any way to get the return data from site (itc
equivalent GetChunk) and any error code (itc ResponseCode)?


The object will have a Status responseText properties that you can read
after the "Send".

If oHttpPost.Status < 300 Then 'Response is OK
someStringVariable = oHttpPost.responseText
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #12
John wrote:
Hi Rick

Thanks for this. Very useful and all works fine. One last thing, is
there a way to add a proxy server's information somewhere ie for when
making calls from behind an isa server?


Sorry, I don't know the answer to that.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #13
Hi John,
AFAIK - XMLHTTP uses IE settings for proxy server. so you try to change
there.

--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:eK**************@TK2MSFTNGP15.phx.gbl...
Hi Rick

Thanks for this. Very useful and all works fine. One last thing, is there
a way to add a proxy server's information somewhere ie for when making
calls from behind an isa server?

Thanks

Regards
"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:6D*****************@newssvr12.news.prodigy.co m...
John wrote:
Hi Rick

Many thanks for that. Any way to get the return data from site (itc
equivalent GetChunk) and any error code (itc ResponseCode)?


The object will have a Status responseText properties that you can read
after the "Send".

If oHttpPost.Status < 300 Then 'Response is OK
someStringVariable = oHttpPost.responseText
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


Nov 13 '05 #14
John wrote:
This is all .net stuff and none of it relates to vba/access as far as I can
see.

Regards

"John Mishefske" <mi************@JUNKtds.net> wrote in message
news:42**********@newspeer2.tds.net...
John wrote:
Thanks for that. I have searched but have not found an example to post to
a url from behind an isa 2000 server. Any idea where I can find an
example?

Here's a couple of sites:

http://www.codeproject.com/internet/...httpclient.asp
http://www.developerfusion.com/show/3272/3/


The first link was not appropriate - it was C++; I apologize for that but the
second is a valid VB example for HTTP POST.

You can authenticate to a proxy using the WinInet API - specifically the
SetInternetOptions() call:

sUserName = getUserName()
If InternetSetOption(hConnection, INTERNET_OPTION_PROXY_USERNAME, _
ByVal sUserName, Len(sUserName)) = 0 Then
Err.Raise vbObjectError + 511, , "InternetSetOption-U"
End If

sPassword = getPassword() ' set password
If InternetSetOption(hConnection, INTERNET_OPTION_PROXY_PASSWORD, _
ByVal sPassword, Len(sPassword)) = 0 Then
Err.Raise vbObjectError + 512, , "InternetSetOption-P"
End If

There certainly may be other methods especially in .Net but this is a snippet from a
working distribute VB6 app. I chose the WinInet library as a way to avoid controls
and external libraries for distribution reasons preferring to work directly with
the API calls. Using WinInet requires Internet Explorer so its not a perfect solution for
distribution. But it is perhaps one method to consider.

If this intriques you Google WinInet and INTERNET_OPTION_PROXY_USERNAME to find examples.

--
'---------------
'John Mishefske
'---------------
Nov 13 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: build | last post by:
G'day All, I'm trying to code a "Data Downloader" to automatically login and download data from www.Investorweb.com.au using the Internet Transfer Control. I have a some VB experience but no...
5
by: John | last post by:
Hi Does anyone have an example of using the Internet Transfer Control from behind a proxy server on port 8080? Thanks Regards
0
by: John | last post by:
Hi I have the standard version of access which does not include internet transfer control (asfik). Can I purchase internet transfer control separately? If not, is there another access compatible...
1
by: Ben Cox | last post by:
Trying to use the MS Internet Transfer Control in a Windows app. I get no errors but when I try to transfer files it is not working. Does anyone have any working samples. Ben
4
by: Brian | last post by:
Hi, I'm trying to make an online FTP utility in C# ASP.NET using MSINET.ocx (an active X control a.k.a. "Microsoft Internet Transfer Control") I've added the reference into my project and have...
9
by: Randy Dietz | last post by:
Hi, what would be the best way to set up an internet radio station? Does my MSDN Universal subscription include all the tools I'll need? I'd love to use vb.net unless there are some decent...
1
by: gwhite1 | last post by:
I used to be able to easily transfer a file or web page off of a web site to a flat file with the VB6 internet transfer control. Does anyone know how to do this in Dot.NET 2005 VB? VB6 was so...
1
by: manontheedge | last post by:
I'm working on a program where I need to be able to get specific data from an internet site that changes daily. Basically, I'm looking at 2 to 3 numbers out of a whole lot of numbers (among other...
1
by: AccessHunter | last post by:
Hi, Please help. I am not sure if this is the right place to post this question. I was given a database that was created by a person who no longer works here.I am trying to inherit the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.