SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Http Connection Manager


Http Connection Manager

Author
Message
tan110
tan110
SSC Eights!
SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)

Group: General Forum Members
Points: 836 Visits: 712
Trying to use "Http connection manager" to automate downloading a file on the internet / http:.

In the http connection manager, every time i hit test connection at the the bottom on any file on any site, I get the errror. "Unable to connect to remote server".

For testing purposes. I put the following URL in the Server URL:
http://www.pgts.com.au/download/txt/alice30.txt

I can get out to the internet just fine with IE and firefox. Anyone ever run into this issue?

Thanks.
CozyRoc
CozyRoc
SSCertifiable
SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)SSCertifiable (6.7K reputation)

Group: General Forum Members
Points: 6666 Visits: 2235
I just tested with the URL you have provided above and it worked fine from my site.

Do you have firewall in place? IE and Firefox might work because they use automatic proxy by default. In the HTTP connection manager there is no such option and you have to explicitly provide your proxy settings.

---
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/


blue.true.979
blue.true.979
SSC Rookie
SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)

Group: General Forum Members
Points: 32 Visits: 23
Were you able to fix your issue?

I ran into a similar issue and if you were able to fix yours, please let me know how you fixed it.

I have created an SSIS package that uses HTTP connection manager and script task to download the file from a website and save it to the local disk. The package works great on windows server 2008 but fails with the following error message on windows server 2008 R2.

[Void DownloadFile(System.String, Boolean)] Error: Exception from HRESULT: 0xC001600D

[Connection manager "HTTP Connection Manager"] Error: Request cannot be processed. Try again later.

Here is sample code in the script task:

Public Sub Main()

Dim httpConnection As Microsoft.SqlServer.Dts.Runtime.HttpClientConnection

Dim c As Object

c = Dts.Connections("x").AcquireConnection(Nothing)

httpConnection = New HttpClientConnection(c)

httpConnection.DownloadFile(Dts.Variables("fileloc").Value.ToString(), True)

Dts.TaskResult = Dts.Results.Success

End Sub

I checked the firewall settings and cannot figure out what is blocking the download. I don't think there is any issue in the package as it runs fine on 2008 but fails on 2008 R2. Please help!

Thanks in advance.
tan110
tan110
SSC Eights!
SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)SSC Eights! (836 reputation)

Group: General Forum Members
Points: 836 Visits: 712
I was not able to fix the issue. The workaround I put in place is time based. So at a certain, I have a Move-IT task (Third party tool to move / ftp data) to pick up the file and FTP. Not the most optimal way, but I was tired of dealing with this issue. If you find something, please let me know.
Aspet Golestanian Namagerdi
Aspet Golestanian Namagerdi
SSC Eights!
SSC Eights! (826 reputation)SSC Eights! (826 reputation)SSC Eights! (826 reputation)SSC Eights! (826 reputation)SSC Eights! (826 reputation)SSC Eights! (826 reputation)SSC Eights! (826 reputation)SSC Eights! (826 reputation)

Group: General Forum Members
Points: 826 Visits: 862
I have the same issue,Has anybody found solution for this problem?

Thanks
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search