Download remote http file
Hi!
What is the best app for downloading remote http files (in this case large xml's) through my mac, to either my mac and/or another remote server?
Thanks!
How large are we talking? if you can make multiple download connections to the host of these files then Speed Download is very good. If not and these are BIG files, I might use something like curl to get it. I don't have to load my browser or use another application.
Similar Messages
-
Can't download remote files with Adobe AIR
Hi all,
I have an adobe AIR application that tries to allow the user
to directly download a remote file. Here's the current code:
var fileRef:FileReference = new FileReference();
// Bunch of Event listeners here
var urlReq:URLRequest = new URLRequest("
http://www.randomfilehere.com/hello.txt");
fileRef.download(urlReq);
Now, when I try to download any random file, let's say
http://www.example.com/buca-di-beppo.gif,
I will get a OS-specific download box that asks me where to save
the file; I choose desktop and 'save' yet nothing happens (but when
I trace the HTTP response through Fiddler I get HTTP/1.1 200 OK,
and apparently all data has been successfully transferred to the
host machine, it just is not saved as a file.
A worse problem occurs with getting a file through HTTPS, as
in https://www.example.com/secure-image.gif. Air will try to
initiate approximately 3,940 http requests (plus or minus 3), that
all return 200 OKs, before eventually stalling (and sometimes
getting a 502).
Does anyone have any idea how to resolve these problems? The
AIR application is of course not a browser-based application so I
didn't think the cross-domain.xml would be applicable here (and if
it is, I don't know where to put it). Any help would be
GREATLY appreciated! Thanks very much for your time.Hi,
Take a look at
http://kb.adobe.com/selfservice/viewContent.do?externalId=3637d5c3
and see if it helps you. -
Accessing BSP File Download using HTTPS URL
Hi,
I'm struggling with a problem of downloading a file from a https url. I wrote a BSP App for downloading a file from a unix server.. It works fine when I use a http URL with port 8080 and does not work when I use https.!!
Example:
https://comms.gmsanet.co.za/supplier [ download does not work ]
http://comms.gmsanet.co.za:8080/supplier [ download works ]
When I try to download using https.. it does not pull the file name and path
see code below and suggest me if anything to be chnaged.
In the Form Initialization method:
event handler fr data retrieval
DATA: i_file type string,
s_fields TYPE tihttpnvp,
s_fields_line TYPE ihttpnvp,
multipart_form type ref to if_http_entity,
file_upload type xstring,
lv_backend type string,
success type string,
entity type ref to if_http_entity,
file type xstring,
content_type type string,
content_filename type string,
content_length type string,
content_disposition type string,
num_multiparts type i,
i type i value 1,
doEcho type string value 'X',
value type string,
filename type ZFILETAB-fileinfo,
ext1 type string,
ext2 type string,
dsn type string,
bptype like sy-uname,
itab TYPE ZFILETAB,
itab_line TYPE ZFILETABLINE,
file_ext type ZFILETABLINE,
fileinfo type c,
zcount type i.
filename = '/NewMessge.doc'.
content_filename = filename.
Check the extension and assign the content type
split filename at '.' into ext1 ext2.
case ext2.
when 'zip'.
content_type = 'application/x-zip-compressed'.
when 'doc'.
content_type = 'application/msword'.
when 'txt'.
content_type = 'text/plain'.
when 'ppt' or 'pps'.
content_type = 'application/vnd.ms-powerpoint'.
when 'xls' or 'exe'.
content_type = 'application/octet-stream'.
when 'gif'.
content_type = 'image/gif'.
when 'jpg' or 'jpeg'.
content_type = 'image/pjpeg'.
when 'htm' or 'html'.
content_type = 'text/html'.
endcase.
dsn = filename.
OPEN DATASET dsn FOR INPUT IN BINARY MODE.
IF sy-subrc NE 0.
zmessage = 'Error opening file'.
navigation->set_parameter( name = 'zmessage' value = zmessage ).
navigation->goto_page( 'downloaderror.htm' ).
exit.
ENDIF.
DO.
READ DATASET dsn INTO <b>file</b>.
EXIT.
ENDDO.
CLOSE DATASET dsn.
set response data to be the file content
runtime->server->response->set_data( <b>file</b> ).
runtime->server->response->set_header_field(
name = 'Content-Type'
value = content_type ).
concatenate 'attachment; filename=' filename into content_disposition.
runtime->server->response->set_header_field(
name = 'Content-Disposition'
value = content_disposition ).
set the file size in the response
content_length = xstrlen( file ).
runtime->server->response->set_header_field(
name = 'Content-Length'
value = content_length ).
runtime->server->response->delete_header_field(
name = 'Cache-Control' ).
runtime->server->response->delete_header_field(
name = 'Expires' ).
navigation->response_complete( ).
Thanks
AjayHi Brian,
I have the same problem as Ajay Yeluguri. In http mode I can generate a download of an Excel document but when we use the portal in https it doesn't work.
When I try to download using https it does not pull the file name and path and when I choose download I have a error message : "Internet Explorer cannot download from ..."
I've test the point 3.2 "... including file up/download" of the BSP application IT00 and it works fine in http and https mode. My problem is not the upload but the download. And in this application the uploaded document is opened in the Internet Explorer window but I want to generate a Save as... window to download the file.
Have you an idea what i can do to solve my problem.
Thanks
Yann -
Hi,
There is a requirement to download an XML file from the Web using Fusion middleware. The XML file is available as a URL, and is updated daily.
http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml
We need to check if this is download is possible from within ESB.
One Oracle consultant reported this to be slightly tricky, but possible through HTTP Binding. We never could get in touch with him again.
So open to the forum.
So please suggest your opinions, and icing on the cake if you can also point to some tutorial or sample code.
Thanks,
Amitjust run a wget on the file and then you can pick it up with a file adapter, I note there is no XSD association with it.
-
CAF service: import web services using Remote Location / File System
Hallo Experts
I use the NetWeaver DevStudio 7.1 SP5.
I have a CAF project and in this project I want to import one WebService as external service. I have chosen the option "Remote location/ File System" in the import web service wizard, then I enter the URL in the following step. But at the end of wizard I got the error "WSDL could not be downloaded because Server returned HTTP response code 403 for URL". The web service I've deployed and tested on the server. It runs well. Any Hints?
Thanks in advance
Kind Regards
PingHallo
I found out: if I enter one URL "http://xxxx.xx.ch:51000/ExampleService/ExampleBean?wsdl&mode=ws_policy". Afterwards I got the error "http://xxxx.xx.ch:51000/ExampleService/ExampleBean?wsdlmode=ws_policy". & ist not correct displayed. Is this the problem that I got 403 Error... It is a bug in SP5
Thanks if you can tell me some work-arround.
Ping -
How to download the .jar files for ESB?
Hi,
I'm connecting to a remote sandbox environment of CE 7.2. I'm running into the problem that some links point to URLs without a fully qualified host name. For example, in ESR (url .../rep) the link that points to the Enterprise Service Builder is http://server:port/rep/start/repository.jnlp instead of http://server.company.com:port/rep/start/repository.jnlp
As a result, clicking the link results in Page not found.
As a workaround, I can type the URL manually in the address field of my browser.
That way, I can launch Web Start. However, it does not solve my problem, because soon after, the download fails because some of the .jar files have the short URL.
I get the error message "Unable to load resource: http://host:port/rep/repository/com.sap.xpi.ibrep.client.jar
Now how can I download the .jar files so that I can start the ESB? Typing the URL into the browser doesn't seem to work, and I don't know what else I should download to launch ESB.
Is there a post-installation way to specify the URL for the components?
Edited by: Arto Pihlaja on Dec 4, 2010 11:37 PMFound it.
I had to change the value of the parameter com.sap.aii.connect.repository.name under CE - Administration - Properties Administration. -
Download only new files?
Hi,
Is there an easy way to download only new files from the
server without having to go through and select the various folders?
My programmer changes a handful of files now and then, but I end up
selecting every folder that he might have touched every time...I'm
sure there is a more efficient way to do it? If so, is there a way
to exclude log files? They are huge, take forever to download and I
don't need them.
thanksSynchronize will do that.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"GPaul" <[email protected]> wrote in message
news:gp4alv$5ja$[email protected]..
> Click on the Modified column in the files panel in
Remote View, this will
> list the files in the order of when they were modified.
>
>
> "Lvanhoff" <[email protected]> wrote in
message
> news:gp49te$4ku$[email protected]..
>> Hi,
>> Is there an easy way to download only new files from
the server without
>> having
>> to go through and select the various folders? My
programmer changes a
>> handful
>> of files now and then, but I end up selecting every
folder that he might
>> have
>> touched every time...I'm sure there is a more
efficient way to do it? If
>> so,
>> is there a way to exclude log files? They are huge,
take forever to
>> download
>> and I don't need them.
>>
>> thanks
>>
>>
>
> -
How to authenticate a JWS Client download of jar files on a web server
Here is a history of how i tried to implement the auth system:
The resources(jar files) cannot be downloaded by any HTTP client from the server without some authentication method.
As JWS is not reliable when using cookies (only 1.5 supports them, but with problems when in JNLP file i specify j2se version=older that 1.5) , i implemented another mecanism that works like this:
1. 1.The template JNLP looks like this
<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://10.3.0.62/" href="mapped/#JWS_CODE#___#PLATFORM#___app2.2.jnlp">
<information>
bla bla
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4"/>
<jar href="http://10.3.0.62/mapped/gui.jar?jwsid=#JWS_CODE#" version="2.2"/>
<jar href="http://10.3.0.62/mapped/data.jar?jwsid=#JWS_CODE#" version="2.2"/>
<jar href="http://10.3.0.62/mapped/log4j.jar?jwsid=#JWS_CODE#"/>
</resources>
<application-desc main-class="com.bet.blues.gui.Application">
<argument>-host</argument>
<argument>ursus</argument>
<argument>-port</argument>
<argument>17771</argument>
</application-desc>
</jnlp>2. All resources found in /mapped/ directory are mapped to JWSServlet
3. The users login to a site , clik on link , /mapped/app2.2.jnlp , the servlet checks if the session is active , gets the PLATFORM form browser request header , gets the JWSCODE for the logged user, replaces this in the template, and returns it to the client
4.Now after the 1st download the JNLP file is opened by JWS Client , that checks for latest version , requesting the JNLP file again
like this:
GET http://10.3.0.62/mapped/f12ks21092___windows___app2.2.jnlp5.Now the servlet sees the the request has a JNLP file name with an ID and PLATFORM, and serves the JNLP as before
6.The JWS Client will request for JAR Files
GET http://10.3.0.62/mapped/gui.jar?jwscode=f12ks21092?version-id=2.2Note: that i have forced JWSID parameter in the URL, that's why the query string contains 2 "?"
- forcing this is because the mapped/*.jar is redirected JnlpDownloadServlet that supports versions , diffs - i cannot use 'version' to put there the jswid param(e.g .../mapped/gui.jar version="fk12ks21092_2.2" because the JnlpDownloadServlet will not find this version , and if JWS Servlet will redirect to JnlpDownloadServlet with correct version param in request, the JWS Client will raise an exception because version responded is not right(JNLPDownloadServlet marks in response HTTP header the version of the jar so JWS CLient will chek it)
JWS Client expects version 'fk12ks21092_ver2.2'; to correct this i should modify the JnlpDownloadServlet and i shouldnt
THE PROBLEM :
on older versions than 1.5 JWS Client raises an exception because it wants to create a temp file named
" gui.jar?jwscode=f12ks21092" because it contains "?"
Only with 1.5 that seems to parse the jar name until it meets "?" char :(
Thats why i wanted to send an error to the client to upgrade to Java Web Start 1.5
Now, maybe u have a solution to this problem...
All i want is a solution to let JWS Client download jars only if the user is authenticated by some mecanism....and also support the versioning system.
Also:
Note that the jar names must preserve on the client JWS Cache dir ( i cannot use the same method to pass the JWSCODE when requesting the JARS as when requesting the JNLP).You need to look into JAAS
-
Hello,
I lost the installation disks for CS4 master collection polish version. Where can I download the installation file?Hi filmowka,
Welcome to the Community!
Go to http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html and choose Master collection CS4 from the list.
Follow the Very Important Section else the download will not start.
Thanks!
Ankit -
How to download a pdf file from the server from an strut application?
Hi,
I wan to download a pdf file from the server side to local system. Please help me how i use the down load option.Read up on the Struts download action [1].
And next time, please post in the relevant forum, one of the web-tier ones [2].
[1] http://wiki.apache.org/struts/StrutsFileDownload
[2] http://forum.java.sun.com/category.jspa?categoryID=20
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
---------------------------------------------------------------- -
Hi all,
I have several problems here, I tried to google but still I could not solve the problem.
Here are my questions:
1. I tried to download an example program of EPOS which require to download a DLL file into the RT, but it failed, here's the error (I attached the picture) 01/02/2008 13:29:50.511 [error] LabVIEW:
Failed to load shared library EposCmd.dll:_VCS_GetProtocolStackName@16:C on RT target device.
From the NI.com forum,
I found a similar problem and it said by installing Network Variable Engine and Variable Client Support into the LV-RT, and I did, but still failed. Any one can help me about this?
2. I posted a question also in lavag, I think this section is more appropriate. "I
am trying to use the digital IO of the motion controller of 7358, but then I realized the delay is more that 1 ms (I checked using the oscilloscope), I attached the code (MOMO = Must On Must Off). Is this real, I mean the hardware delay between on-off is as big as this? Anyone knows the solution for this?"
Note: I am using LV-RT 8.5, PXI-7358 Motion Controller, EPOS 70/10
Thank you for any help
Message Edited by bono02 on 01-02-2008 05:47 AM
Attachments:
maxon-rt3.JPG 120 KB
momo1.JPG 55 KBHello bono,
1. From what I have seen, this error is usually caused by one of two things. The first is the Shared Variable software components not being installed, which is covered in this Knowledgebase. The other is due to a corruption of the ni-rt.ini file on the Real-Time controller. You can follow the steps layed out in this Knowledgebase, which gives three possible remedies. You could also try reinstalling the software (firmware) or create a PXI Uninstall disk from Measurement & Automation Explorer by selecting Tools»Remote Systems»RT PXI Disk Utilities»Create PXI Uninstall Disk. Boot the PXI Controller from the PXI Uninstall Disk, which will erase the ni-rt.ini and ph_exec.exe on the target. However, you will need to reconfigure the controller after doing this.
2. Due to the nature of the digital I/O on motion controllers, it is not surprising that you are seeing around a 1ms delay. It deals with the fact that it must update the motion controller with the new value on each control loop. This Knowledgebase gives a little more clarification regarding the 7350 specs.
Carlton
CLD -
Help - Downloading the par file into NWDS
Hi,
Can anyone please tell me how to download the par file in NWDS to customize iviews.
What is the pre-requisites?
Is there any step by step procedure available to download the EP iViews and put our codes into that.
Regards,
NirmalHi Nirmal
You can find all pars at this location :
<Drive>:/usr/sap/<SID>/JC<Instance number>/j2ee/cluster/server<XX>/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/deployment/
Reneme selected par name (remove .bak extension). And than follow :
http://help.sap.com/saphelp_nw2004s/helpdata/en/96/df7f409cd50a1ae10000000a155106/frameset.htm
Regards
Jakub Krecicki -
I uninstalled and reinstalled but the program still won't open. I was trying to download an mp3 file last evening. Instead the site tried to install a new audio player. I did not want it so uninstalled it immediately. I think in that process something was deleted that I need for iTunes but I do not know what. How do i figure out what is gone and recover it?
I did try a system restore - but that was not a fix either.I was trying to download an mp3 file last evening. Instead the site tried to install a new audio player.
Ackk ... that behavior is consistent with the play_mp3.exe trojan:
http://en.wikipedia.org/wiki/Play_mp3.exe
Try downloading and installing the free version of Malwarebytes AntiMalware. Update your MBAM definitions and then run a full scan of the PC. (Takes about 2 hour on my Lenovo.)
http://www.malwarebytes.org/mbam.php
Does the scan find any infections? If so, please paste the contents of the log file for the scan in a reply here so we can have a look. -
VBA How to download a generated file from IE
Hi guys,
Apologies if this is an easy one, I couldn't find anything that helped me with my problem and was hoping someone might point me in the right direction for which object/argument to use.
I'm trying to automate the downloading of a report, it will be a CSV file however it's not a static address (i.e. www.hello.com/files/goodbye.csv)
The website is a CMS with database backend and upon clicking a button, the report is generated and the user will be prompted to download a resulting file (once it has been prepared).
It is this action that I am trying to automate, however I'm not sure how to get IE to click the button and automatically saving instead of prompting the user at all (ideally this will be done with IE Visible being false in the end).
Any help would be greatly appreciated!
Best regards,
Jeff.You can use an API to do the work too!
Option Explicit
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( _
ByVal hWnd1 As Long, ByVal hwnd2 As Long, _
ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" ( _
ByVal hWnd As Long, _
ByVal wMsg As Long, _
ByVal wParam As Long, _
lParam As Any) As Long
Public Declare Function PostMessage Lib "user32.dll" Alias "PostMessageA"
ByVal hWnd As Long, _
ByVal wMsg As Long, _
ByVal wParam As Long, _
ByVal lParam As Long) As Long
Public Declare Function SetForegroundWindow Lib "user32" (ByVal hWnd As
Long) As Long
Public Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
Public Const TCM_SETCURFOCUS As Long = &H1330&
Public Const BM_CLICK As Long = &HF5&
Private Const WM_COMMAND As Long = &H111
Sub Download()
Dim i As Long, res As Long
Dim hWndUI As Long, hWndBtn As Long
Dim timeOut As Double
Const cClsName As String = "#32770" ' same classname for all the control
windows we'll need
ReDim aWinText(1 To 3) As String
aWinText(1) = "File Download - Security Warning"
aWinText(2) = "Save As"
aWinText(3) = "Download complete"
' 1, get the File download window and click Save
' 2, get the Save As window and click Save
For i = 1 To 2
hWndUI = 0
timeOut = Timer + 5
While hWndUI = 0 And Timer < timeOut
Sleep 100&
hWndUI = FindWindow(cClsName, aWinText(i))
Wend
If hWndUI = 0 Then
' eg bad url
Err.Raise 12345, , "didn't get " & vbCr & aWinText(i)
End If
SetForegroundWindow hWndUI
Sleep 100&
hWndBtn = FindWindowEx(hWndUI, 0&, "Button", "&Save")
Sleep 200&
res = SendMessage(hWndBtn, TCM_SETCURFOCUS, 1, ByVal 0&)
'res = SendMessage(hWndBtn, BM_CLICK, ByVal 0&, ByVal 0&)
res = PostMessage(hWndBtn, BM_CLICK, ByVal 0&, ByVal 0&)
res = SendMessage(hWndBtn, WM_COMMAND, 0&, 0&)
Next
' 3, wait until Download complete appears
hWndUI = 0
timeOut = Timer + 10 ' increase timeOut with bigger files
While hWndUI = 0 And Timer < timeOut
hWndUI = FindWindow(cClsName, aWinText(3))
Wend
' optional open folder
hWndBtn = FindWindowEx(hWndUI, 0&, "Button", "Open &Folder")
res = SendMessage(hWndBtn, TCM_SETCURFOCUS, 1, ByVal 0&)
res = PostMessage(hWndBtn, BM_CLICK, ByVal 0&, ByVal 0&)
' res = SendMessage(hWndBtn, BM_CLICK, ByVal 0&, ByVal 0&)
res = SendMessage(hWndBtn, WM_COMMAND, 0&, 0&)
DoEvents
End Sub
Sub Test1()
Dim url As String
Dim objIE As Object
On Error GoTo errH
url = "http://social.microsoft.com/Forums/getfile/25241/"
' iso IE suggest add a WebBrowser control to a sheet or a userform
' and use that rather than starting an instance of IE
Set objIE = CreateObject("internetexplorer.application")
objIE.Navigate url
Download
done:
On Error Resume Next
objIE.Quit
Exit Sub
errH:
MsgBox Err.Description
End Sub
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it. -
It never asked for a location to download either file....Also, has anybody figured out how to access live chat with Adobe? I'm thinking this option in summary of options available is BS as it's all grade out.
Hi Justme,
Apologies for your incovinience.
Requesting you to please go to https://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=us. When you click on download button (after selecting your OS details), it should open a new browser window (which will launch the Akamai installer automatically). Please cancel any installation or error shown.
The newly opened browser page will look something like this:
As highlighted, please click on these links (one by one) and see if it downloads the required files. The downloaded files will be compressed with 7z format. If you have some extracting tool (like WinZip) try extracting it. If you don't have it, download 7z. Its a free utility from Microsoft. Once downloaded and installed, you will be able to extract file and locate the PSE setup.
Please let me know if you face any issues.
~Surendra
Maybe you are looking for
-
Service Ticket - Project Management Add-on
Background: We currently offer a third party e-commerce solution for our clients called Four51. Four51 is integrated into our SAPB1 platform. We provide comprehensive print managment and marketing fulfillment programs for medium and large sized organ
-
Need help getting photo/video software?
I just got a Sony DSC-H55 camera. With having a nicer camera now I want to do more with it. My old camera I was very linited on what it could do. This new one shoot at 1080P, has nice zoom, and 14mp. I am looking for some software that I can use f
-
Was the Smart Playlist podcast order bug on iPod nano fixed in iTunes 11
iTunes 9 broke the order in which Smart Playlists play podcasts in on the Nano. See "Smart Playlist order not respected on ipod nano after upgrade to iTunes 9" (https://discussions.apple.com/thread/2154509). Has this been fixed in iTunes 11?
-
Dear Experts, Employee is not able to view the Self Appraisal Documents in ESS where as he is able to view the same in R/3. What should I do to correct it. Regards, Kamal rawal
-
I have that feature on my Macbook Pro. However, on my desktop MacPro I don't see that even though I'm on the same version. What gives? Any ideas? I have the Iris adjustment, I have the teeth whitening, just not the skin softener.... I'm running (