Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > TrueUpdate 2.0

 
 
Thread Tools Display Modes
  #1  
Old 03-07-2005
Ninj Ninj is offline
Forum Member
 
Join Date: Jul 2004
Posts: 13
Huh? HTTP.Submit bug?

I have been trying to submit data to my web server using the HTTP.Submit action as shown in my code below:

local SubmitFName = "";
myValues = { filesfolder="/secure/rp", OpCode=2, filesize=5, logfile="LogFile.txt", nameoffile="D:\\Nina\\Test 021204\\System\\irunin.ini" };
SubmitFName = HTTP.Submit("http://www.myserver.com/cgi-bin/FullCGI.cgi", myValues, SUMBITWEB_GET, 20, 80, nil, nil);

FullCGI.cgi is a script in the server that is supposed to upload a file (in this case, irunin.ini) and write to a log file, LogFile.txt.

After running the Update application and when I check my web server, the file is not uploaded and there's no log in the log file. And there is no error message at all. Server Response is also blank.

I am not sure if this is a bug or maybe I am just missing something here but
submitting this through the IE browser ('http://www.myserver.com/cgi-bin/FullCGI.cgi?filesfolder=/secure/rp&OpCode=2&filesize=5&logfile=LogFile.txt&nameoff ile=D:\Nina\Test 021204\System\irunin.ini') is always successful.

Btw, I've already posted this in the beta testing forum but I cannot find the forum now and I still need help with this.

Last edited by Ninj; 03-07-2005 at 07:58 PM.
  #2  
Old 03-09-2005
Ted Sullivan's Avatar
Ted Sullivan Ted Sullivan is offline
Indigo Rose Staff Member
 
Join Date: Oct 2003
Posts: 825
My guess is that your web script needs the file data rather than just the file name. Internet Explorer based HTTP uploads are something much different than a simple HTTP submit using GET. You'd likely need to read the data in to an HTML compatible string and then POST it to your CGI script.

It's certainly possible, but it really depends on what your web server application is looking for and its specific implementation details. The fastest and easiest way to do this might be using an FTP upload though. It's definitely more robust and reliable than an HTTP upload any day.
__________________
Check out the new MSI Factory 2.0!
  #3  
Old 03-10-2005
Ninj Ninj is offline
Forum Member
 
Join Date: Jul 2004
Posts: 13
Hi Ted,

Thanks for the reply.

I might sound naive here but could you please explain further the FTP upload. How can I upload through FTP in TU2? I cannot find any action for FTP upload.

I don't mind if I will have to use something else. And I actually prefer FTP. I just don't know how to do this in TU2.

Thanks
  #4  
Old 03-10-2005
Ted Sullivan's Avatar
Ted Sullivan Ted Sullivan is offline
Indigo Rose Staff Member
 
Join Date: Oct 2003
Posts: 825
To perform FTP uploads, you can use the FTP Plugin. All of the Action Plugins that work with AutoPlay Media Studio 5.0 and Setup Factory 7.0, also work with TrueUpdate 2.0.

Here's a link to the Help File. There's also a downloadable demo available from the first link above.

Check that out and see if it would work for your application. If you have any other questions, just let me know.
__________________
Check out the new MSI Factory 2.0!
  #5  
Old 03-10-2005
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
Hi Ninj,

Just a question, but have you tried using SUMBITWEB_POST instead of SUMBITWEB_GET?

Also are you sure that your firewall is letting TrueUpdate conntect to the Internet at all?
__________________
MSI Factory The Next Generation Intelligent Setup Builder
  #6  
Old 03-14-2005
Ninj Ninj is offline
Forum Member
 
Join Date: Jul 2004
Posts: 13
Hi Mark,

Truth is I've already tried to use the Post method before without any luck as well. However, last Friday, I tried playing with the timeout. I was finally able to upload using the Post method after I increased the timeout to 90.

Thanks for all the help
  #7  
Old 03-14-2005
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
Quote:
Originally Posted by Ninj
Hi Mark,

Truth is I've already tried to use the Post method before without any luck as well. However, last Friday, I tried playing with the timeout. I was finally able to upload using the Post method after I increased the timeout to 90.

Thanks for all the help
Hi Ninj,

Thats great to hear! It would seem as though before your HTTP.Submit() action was timing out becuase your server did not have enough time to upload the file.
__________________
MSI Factory The Next Generation Intelligent Setup Builder
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Setup Factory 7.0 (v 7.0.2.0) Available Darryl Setup Factory 7.0 Discussion 9 03-06-2005 02:57 PM
AutoPlay Media Studio 4.0.0.4 Released Colin AutoPlay Media Studio 4.0 0 04-01-2003 11:16 AM
AutoPlay Media Studio 4.0.0.3 Released Brett AutoPlay Media Studio 4.0 0 12-11-2002 09:39 AM
Setup Factory 6.0.0.3 Update Available Brett Setup Factory 6.0 0 02-12-2002 10:21 AM


All times are GMT -6. The time now is 11:04 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software