Msxml2.XMLHTTP Takes Too Long To Upload File
Uploading from browser to server using Msxml2.XMLHTTP takes a long time about 15 minutes for a 1.5MB file at 37.2Kbps, although it does get there. Is there anyway to speed things up?
Here's the code ...
View Replies
ADVERTISEMENT
running w2k3/iis6 and trying to shorten the length of time that a simple 10
field ASP form takes to execute using CDOSYS. it takes about 50 seconds each
time...and I've no idea why?
any pointers here lads? on other servers the exact same script does it's job
in 3 seconds...but not this one?
View Replies
View Related
I use MSXML2.XMLHTTP to receive some HHTP responces from
remote server, unfortunatedly, it uses cookie-based auth.,
so I am unable to pass it, due to inability to store
cookies. How can I retrieve cookies from the headers of
HTTP response, and how can I add them to my request at the
next step?
View Replies
View Related
I am trying to upload a file on my web server to another website using XMLHTTP. My code logs onto the other website automatically and navigates through about 4 pages to the file upload screen.
If I were trying to post regular form data to the site it would work fine, but I have to some how mimic the <input type="file"> box and enctype="multipart/form-data" parameter of the form within the XMLHTTP post. I know I have to turn the file and other form data on my server into a binary stream and send it to the receiving website.
View Replies
View Related
I am running the following code and I get an error:
Set xmlHttp = Server.CreateObject("MSXML2.XMLHTTP.3.0")
xmlHttp.Open "Get", URLToRSS, false
xmlHttp.Send
RSSXML = xmlHttp.ResponseText
The error is:
msxml3.dll error '800c0005'
The system cannot locate the resource specified.
It points to the "xmlHttp.Send" statement.
This code runs perfectly on my old ISP's server but not on my GoDaddy server.
View Replies
View Related
Is this the correct newsgroup for this posting?
I have a problem when using these lines of code:
Dim xmlhttp as Object
set xmlhttp = CreateObject("Microsoft.XMLHTTP")
Call xmlhttp.Open("GET", Application.Profiles.ActiveProfile.Server &
"/Test.abc", False):
Call xmlhttp.send("");
when the last line of code is executed, i get the following error message:
"The download of the specified resource has failed. -2146697208"
Application.Profiles.ActiveProfile.Server = http://x.x.x.x/virtualdirectory
View Replies
View Related
I cant find out how to get this to work...i got this bit of code..
--------------------------------------------
Code:
dim objXMLHTTP
dim URL
URL = "http://www.yahoo.com" 'the url that you want to pull html from
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP") 'create the
xmlhttp object
objXMLHTTP.Open "GET", URL, false 'use the open command to get the url
objXMLHTTP.Send
'TO GET HEADERS
'response.write objXMLHTTP.getAllResponseHeaders
Response.Write "<hr>"
Response.Write "<h4>HTML Code for "&URL&"</h4>"
Response.Write "<textarea rows=30 cols=120>"
Response.Write objXMLHTTP.responseText 'output the html that was
pulled from the page
Response.Write "</textarea>"
Set objXMLHTTP = Nothing
-----------------------------------------------
and it works...it fetches the page but i want it to save the information that it fetches into an html file
I tried using this code as well...
------------
Code:
sFile = "test.html"
sURL = "http://www.yahoo.com"
Set objXMLHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
objXMLHTTP.Open "GET", sURL, False
objXMLHTTP.Send
set strm1=createobject("adodb.stream")
With strm1
.type = 1
.open
.write objXMLHTTP.responsebody
.savetofile sFile, 2' adSaveCreateOverWrite
.close
End With
-------------------------
but it doesnt want to write to file.
i get the following error
ADODB.Stream error '800a0bbc'
Write to file failed.
/bytesect/data/test2.asp, line 15
Can anyone please help i am really struggling with this...I simply want a generated ASP page to be saved into an html page on the server through a script. I tried the filesystemobject method but it would be insane to insert an FSo.writeline "" code into every single line of html. This XMLHTTP component is promising but i wanna save the file!
View Replies
View Related
I have recently started to look after a website which has been setup to do the following.
We have intranet1, intranet2 and internet3.
1 is our intranet site, 2 is a backup of 3 and located on our intranet and 3 is our main public website.
1 and 2 are both hosted on the same network, 3 is on an external network. Here is what I need to do, internet3 has a page where jobs are loaded dynamically from XML and XSL files and it is backed up every night to intranet2. Code:
View Replies
View Related
We face problems uploading excel (with macros) documents using HTML
File Upload.
The file contents are corrupted while viewing the same. However, we
are able to upload excel (w/o. macros) documents successfully. Is
there anything we have to take care of, while handling uploads of
excel documents with macros?
View Replies
View Related
Let me paint the picture: A large MS SQL database (in 7.0) on a Win2K box (not that the Server O/S matters here really) and an ASP page that grabs data from it to present, of course, to the client browser. For the sake of conversation (since I have tested this oversimplified version of the problem) the code pulls a select * from blah (where blah is my BIG table - right now about 25,000 rows).
The problem/question is the time it takes to present the HTML to the client. The big question is...
Why would it take significantly longer to present the final (parsed) HTML on a remote client computer than right on the server? Note: I would normally consider the time it takes to "download" the HTML to the client, but in this case the actual "presented (parsed) HTML" is so small (it's only one integer inside the body tags), that could never account for the difference in time...and I mean significant..on the server...seconds...on a random client computer...many minutes...on my customer's machine...over an hour (which is, of course, my particular problem).
I obviously have to look at their ISP, but a)Again, the end-product HTML is very VERY small and b)the page does eventually present itself (so it's not timing out). I have the scripttimeout set ridicously high so that potential problem doesn't come up, but that's not the problem.
I just want to know what could be causing the significant time difference? Everything I know about the ASP "process" tells me this scenario should never happen (unless the HTML being sent is significant, of course, like a huge list, or something).
View Replies
View Related
I'm having a problem with the fact that I want to allow image files to be uploaded to a remote web server, as the hosting package the web site is on is IIS6 and has a default file upload size limit of 200kb. As it's a shared hosting package, the default limit cannot be changed for me unfortunately.
Anyway - i need to check the size of the file being uploaded, so i can notify the user and prevent them getting the default Microsoft error message page. The problem is that I can't implement a server side size check which works, using either Request.TotalBytes or load.getFileSize (with "load" being an object of my loader class). It seems that I can't carry out any of these operations when the file size is too large.
View Replies
View Related
I would like to add a facility to my web page which allows users to upload basic files (word, excel, text, gif, jpg etc) to the server.
I know there's a facility to do this using HMTL forms, but I don't know how to handle the file on the server side.
What I think I need is an ASP file running some code to manipulate the filesystemobject, allowing me to receive the file and store it in the filesystem on the server. It would be nice to access some of the file properties too (name, type etc).
I've seen a few custom components online which allow you to do this, but I can't depend on installing them. I need to be able to script it myself.
View Replies
View Related
I would like to use this code on my website to allow simple file uploads from clients. I would like to restrict the file types they can upload. Code:
View Replies
View Related
I use "Msxml2.XMLHTTP" in a asp page, to save changes of database in a html
file. All worked well until I installed a new email server (ipswitch imail). Now this object don't work remotly, fire the error:
///////////////////////////////
msxml3.dll error '80072efd'
A connection with the server could not be established
//////////////////////////////
I check the page in a local session in the server and works well, but not in remote pc.
What is happening?
View Replies
View Related
I need to use MSXML2.DOMDocument in my ASP page. The following is my code:
xml.asp:
=====
<%
dim sx
sx="<root><a>text1</a><b>text2</b></root>"
dim xd
set xd=Server.CreateObject("MSXML2.DOMDocument")
xd.loadXML(sx)
Response.write xd.hasChildNodes
%>
Somehow, xd.hasChildNodes return False, i.e. there is nothing in the xd. I
guess the error was caused by missing the path of the MSXML2 library file. It seems
like the code doesn't know where the MSXML2.DOMDocument is. But the code didn't
generate any error.
View Replies
View Related
I am almost certain that I could use HTTP Post/Get to submit XML Web Service call (over SSL as well, if using Version 3 of MSXML2) from an ASP Application?
However, would I only be able to call web-service in a an asynchronous mode (with a callback function)? If so, how?
View Replies
View Related
this code works with msxml4, but found out the server it ultimately will sit on only has ver 3 and they won't update. so, this code fails on the bold line and i can't figure out why.
Code:
Set httpReq = Server.CreateObject("MSXML2.ServerXMLHTTP" )
Set myXmlDoc = Server.CreateObject("MSXML2.DOMDocument" )
httpReq.Open "post", webServiceUrl, False
httpReq.setRequestHeader "Content-Type", "text/xml"
httpReq.setRequestHeader "SOAPAction", "soapserver/soap:CreatePreview#CreateGraphics"
httpReq.Send soapEnv 'fails here
returnSoapEnv = httpReq.responseText
View Replies
View Related
I'm working on a asp-application where I shall upload a xml-file from the
user, and then process til file (xml) for insert into a database. I'm currently
using a "INPUT-field of TYPE=file" to browse for file, and a extra submit button
to perform the actual transfer and start file-processing.
Is it possible to show the user one ebutton "IMPORT" without any text-field
associated with it, which browses for the file and directly startes the
upload to server and triggers file-processing. The actual processing of the file
must be done on the server-side (inserts to db etc.).
View Replies
View Related
Is it possible to upload files using <INPUT type="file"> tag from IE on PDA .
View Replies
View Related
when i load the page nothing happens, it just refreshes to a blank page. does this page need to be named something special? does it need to be on the same server it's uploading to? Code:
View Replies
View Related
Whit ASP upload procedure i charge to a server files with different extensions.
But if you want to download a file with the extension ".Bat" ( for example execute.bat ) the browser returns:
The page can not be found. The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
The path to the file execute.bat is exactly and this file execute.bat is located on the server.....
View Replies
View Related
Where can i find information on how to upload files to a folder on my server using asp code and a form? Does anybody have a simple snip of code for this that they would mind sharing?
View Replies
View Related
Could someone point me in the right direction for an asp script that would save an XML file to a folder on the same server it resides on?
This XML file will be sent from another application and the asp script needs to accept the XML file (no validation of the XML in the file is required) and save it to a folder on the server.
I've seen scripts with a web frontend which requires user interaction where the user has click a browse button and select the file to be uploaded from their local machine. The script I require will have no user interaction - the XML file will just be fired at the script from the other application and it should save it to a folder on the server.
View Replies
View Related
i need a piece of code which enables my to upload a PDF file into the server hard disk....im using ASP to develope my website....
View Replies
View Related
I have to do something like this that a user see list of record if he would find record and want to upload that list then he could upload in a pdf file of that record.
View Replies
View Related
I'm looking for some ASP code that will allow a user at my website to upload a jpg. image from his or her harddrive to my website or just to mail it to me via email.
View Replies
View Related
I want to build file upload functionality that, when user clicks on a link, a file browse box pops up and allow the user to select a file and upload it. Is this supported by IE at all? If yes, could someone send me a simple example?
View Replies
View Related
Im trying to upload files to my website, my write permissions folder is /db, but when I try to upload some file, Directory does not exists shows up. What could be the problem?
My code:
View Replies
View Related
how can I copy a file that is in one folder of the site such as /data/ to another folder, like / ?
View Replies
View Related
I want to upload a doc file to email form and want to send to my email adress. Anybody have idea how can I upload a doc file into a form and send it as attachment to my email address.
View Replies
View Related
How can I Upload one file .dbf to SQL SERVER, I can't not get path where file .dbf store because it store in pc client and I don't want copy it to Server.
View Replies
View Related
i want to know about file upload problem in my asp application. how to upload file from the user to my project path (example c: ewsimage)
View Replies
View Related
I have written a script to upload the file. The script can upload txt, rtf file. However, when I try to upload doc file, the file cannot open, or just decode as a rubbish. Do you have any idea about this problem?
View Replies
View Related