![]() |
#361 |
Junior Member
Join Date: Dec 2009
Posts: 2
|
Hi Takhir,
thanks for the quick reply. The first URL works with my script too, it is the second and third URL that don't work. |
![]() |
![]() |
![]() |
#362 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Sorry
![]() Please test last link (https) in a browser - my Mozilla displays "Download Java SE Development Kit 6u17 for Solaris x86, Multi-language" page, not exe. The same I get from inetc - 28 kB file, when renamed it is viewable in borwser as well. |
![]() |
![]() |
![]() |
#363 |
Junior Member
Join Date: Dec 2009
Posts: 15
|
Still got some problems using ftp::put
When using: Works: inetc::put /CAPTION "service pack upload" "ftp://user:pass@192.168.0.150:8021/5mb.bin" "c:\Dell\5mb.bin" Fails: inetc::put /CAPTION "service pack upload" "ftp://user:pass@192.168.0.150:8021/Application/5mb.bin" "c:\Dell\5mb.bin" The only difference is the Directory on the FTP server. The directory exists. What else should I use? |
![]() |
![]() |
![]() |
#364 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Please note that most of ftp servers work with paths relative to logged user home dir.
|
![]() |
![]() |
![]() |
#365 |
Junior Member
Join Date: Dec 2009
Posts: 15
|
I know. But logging on with any other FTP client is placed in to root. Local FTP server that's running on a device with WinCE. For testing purposes it's running localy.
By running the working version it's placed in the root correctly. And I'm really sure that the directory exists ![]() |
![]() |
![]() |
![]() |
#366 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
To be sure it goes to FS root (if permitted) you can use host//path
|
![]() |
![]() |
![]() |
#367 |
Junior Member
Join Date: Dec 2009
Posts: 15
|
That does the trick! Thanks a lot!
|
![]() |
![]() |
![]() |
#368 |
Junior Member
Join Date: Dec 2009
Posts: 15
|
Creating dirs ain't possible with this?
|
![]() |
![]() |
![]() |
#369 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
It should. If current user has permissions.
|
![]() |
![]() |
![]() |
#370 |
Junior Member
Join Date: Dec 2009
Posts: 15
|
Current user gots al the permissions he need. I get the Reget error. Any example?
Or just like: inetc::put /CAPTION "service pack upload" "ftp://user:pass@192.168.0.150:8021//Application/NewDir/5mb.bin" "c:\Dell\5mb.bin" |
![]() |
![]() |
![]() |
#371 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
This work for me
code: Sorry, CLI output is in Russian, but it is not difficult to understand code: |
![]() |
![]() |
![]() |
#372 |
Junior Member
Join Date: Dec 2009
Posts: 15
|
It's not working for me. User got the permission to read/edit/create/execute.
code: Returns: Upload Status: Reget Error *For testing I created a 5mb.bin* With CLI and ftp open it's possible. Also tried several attempts using extra slashes. |
![]() |
![]() |
![]() |
#373 |
Junior Member
Join Date: Jun 2009
Posts: 30
|
Hello,
I have a problem with the unicode build of inetc. I am trying to send post values to a script on my website. This is my command line: code: Bot nothing is send, as if the connexion could not be established. Thanks in advance for your help |
![]() |
![]() |
![]() |
#374 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
I see one bug in code for UNICODE - POST message size should be defined in bytes, not in characters. But probably content-type header should be also changed to
Or this should be 16LE ?code: BTW does ANSI version works with your request? |
![]() |
![]() |
![]() |
#375 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Idea to send Unicode string in http body is very attractive, but my experiments with Unicode POSTs were dissapointing. An it looks like browser sends form data as multibyte even if form was downloaded in page with utf encoding. So I just added body string convertion to multibyte, this worked in my tests. Please test attached dll.
|
![]() |
![]() |
![]() |
#376 |
Junior Member
Join Date: Jun 2009
Posts: 30
|
Hello Takhir,
I have just tested the dll that you have attached and all work well. The problem is corrected (post values are sent correctly) Thanks a lot for your work! Regards Website : http://www.timelapse-photo.com |
![]() |
![]() |
![]() |
#377 |
Junior Member
Join Date: Feb 2010
Posts: 3
|
Zdravstvuj Takhir :-),
I'm wondering if you could help me with this. I've got a php script which allows me to upload a file (just a normal HTML form with upload). I'd like to post data to that script and upload a file. So, the question is - is it possible to use inetc: ![]() I guess I can use the TEXT2POST field, but I would have to MIME encode the file as a text and I'm worried that it will not be long enough. If it's not possible, have you (or anyone else) got a better idea how to do it? Alternatively, would you be able to enhance inetc, so it's possible? I can't use put as it's a IIS server and I can't enable webdav (to allow put). Thanks, Rob |
![]() |
![]() |
![]() |
#378 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
I don't have ready solution for this
![]() |
![]() |
![]() |
![]() |
#379 |
Junior Member
Join Date: Mar 2010
Posts: 4
|
I added the capability of using files as POST data, so as not to be limited by the NSIS variable size.
Usage: /FILE "filename" among inetc::post options. The 'content' parameter still needed, so it amounts to inetc::post "blah" /FILE "filename" ..... Attached: source file with the modification, and a .dll with it compiled in. Non-Unicode, I somehow couldn't get those settings to compile, but didn't have time to figure it out at all. |
![]() |
![]() |
![]() |
#380 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
I like simple solutions
![]() Few minor improvements and testing required, but idea looks good. Inet samples use HttpSendRequestEx() and InternetWriteFile(), but your approach may work as well - need to test this at least on 1MB files. And IMHO some corrections required: POST body size should be file size, not strlen() in this case (jpeg file may have a lot of zeroes); additional error handling for file IO required (part of file may be locked... in theory ![]() But any case this looks good, thanks for your help, SinusPi! Last edited by Takhir; 3rd March 2010 at 11:01. |
![]() |
![]() |
![]() |
#381 |
Junior Member
Join Date: Feb 2010
Posts: 3
|
Hi there,
Not sure if it helps, but here is how can this be implemented. The example is using python and wget, but shows the necessary steps that are involved in posting a file: http://www.noah.org/wiki/WGET_CGI_Post (www.noah.org/wiki/WGET_CGI_Post) And this is what the post request looks like when uploading a file in FireFox: Content-Type: multipart/form-data; boundary=---------------------------188752843329869 Content-Length: 76298 -----------------------------188752843329869 Content-Disposition: form-data; name="file"; filename="HttpAnalysisPluginSP14.zip" Content-Type: application/x-zip-compressed <The base64 encoded data go here> -----------------------------188752843329869 Content-Disposition: form-data; name="submit" Submit -----------------------------188752843329869-- |
![]() |
![]() |
![]() |
#382 |
Senior Member
Join Date: Aug 2007
Location: Paris, France
Posts: 304
|
Hello..
I need also to use the POST request with /FILE support (to skip NSIS string limitations) Where can we get this updated version of inetc? Is it available yet? BTW, thanks for the plugin ![]() Olivier My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
![]() |
![]() |
![]() |
#383 |
Junior Member
Join Date: Jul 2009
Posts: 8
|
Download fails
Hi, great plugin. I use it in my installer to download & install the .NET framework when it is not yet installed. It works perfect 99% of the time.
However, once in a while a customer calls that it does not work. When they retry it does work. I'm not entirely sure but the problems seems to occus when my installer is executed immediately from Firefox. I've tried to reproduce it on a virtual machine, and it occurs exactly one time. After that it keeps working fine. Is this a known issue? If not, I'm happy to help to debug this issue. Is there a way to get logs or anything? Thanks, Robbert Dam |
![]() |
![]() |
![]() |
#384 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
/FILE option now available in inetc. This is not classic file post implementation, but this work and file content is available as http input. File name (tail of TEXT2POST parameter) added to HTTP headers as Filename: header. Samples included into new package. Please test before using
![]() Also please note new sample on wiki page http://nsis.sourceforge.net/Inetc_plug-in from Edward Marshall & Jonathan Beddoes - how to restore installer window after silent calls from .onGUIInit |
![]() |
![]() |
![]() |
#385 |
Senior Member
Join Date: Aug 2007
Location: Paris, France
Posts: 304
|
Thanks for the addition, Takhir! We will check that out and get back to you if any problem..
My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
![]() |
![]() |
![]() |
#386 |
Junior Member
Join Date: Jun 2009
Posts: 10
|
Progress bar size
How can I make the download progress bar have the same size with the global installer progress bar ? (I'm using MUI)
Now it's kind of goofy looking: ![]() |
![]() |
![]() |
![]() |
#387 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
You'll need to modify the plug-in.
Stu |
![]() |
![]() |
![]() |
#388 |
Junior Member
Join Date: Jun 2009
Posts: 10
|
Thanks, I took your suggestion. If anyone needs this, just modify inetc.rc and rebuild:
code: When recompiling with a newer Visual Studio, make sure you link against libcmt.lib and not msvcrt.lib as by default, otherwise you will require msvcrXY.dll at runtime depending on your VS version. The statically linked plugin is a tad larger, but works everywhere. |
![]() |
![]() |
![]() |
#389 |
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
Probably better if the plugin conformed to the UI at hand.. I'm guessing your adjustments would break its working with a Classic interface (or UMUI, XPUI, etc.) / other font sizes (inherent dialog unit<>pixel changes.. original plugin suffers from this as well).
I used the WndSubClass plugin to handle some of that.. lot more trouble than it's worth, though ![]() |
![]() |
![]() |
![]() |
#390 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
@punkomat: also make sure you tell VS not to embed a manifest otherwise (I believe) the CRT dependency remains.
@Animaether: that mod should work fine because it's in dialog units not pixels. Stu |
![]() |
![]() |
![]() |
#391 |
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
Doesn't it presume the parent dialog being 300 units wide, though?
|
![]() |
![]() |
![]() |
#392 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Ah sorry yes that is true.
Stu |
![]() |
![]() |
![]() |
#393 |
Junior Member
Join Date: Dec 2010
Posts: 2
|
Url parts error
I have a weird error using this plugin: I get a Url Parts error when downloading a certain file. The other files are fine, I tried deleting and reuploading the file, I tried a different file with same filename, so it's a url issue. It only occurs on XP (which I test in a VM). On my native Win7 OS, it works fine.
code: Here is my complete script: http://code.google.com/p/sevenupdate...evenUpdate.nsi |
![]() |
![]() |
![]() |
#394 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
may be too many quotas? what about inetc::get ${SOURCE} ${DEST} /END ?
Also options should stay before url/file pairs inetc::get /TIMEOUT=30000 /NOPROXY "${SOURCE}" "${DEST}" /END |
![]() |
![]() |
![]() |
#395 | |
Junior Member
Join Date: Dec 2010
Posts: 1
|
Url Parts error
Quote:
|
|
![]() |
![]() |
![]() |
#396 |
Junior Member
Join Date: Dec 2010
Posts: 2
|
No not yet, I am sure it's related to the plugin and XP because Win7 it works fine. Also I already tried moving the params before the urls, gives me File Open Error instead.
|
![]() |
![]() |
![]() |
#397 |
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Verify that your "$INSTDIR exists when you start download to this folder.
|
![]() |
![]() |
![]() |
#398 |
Junior Member
Join Date: Jan 2011
Posts: 2
|
/BANNER with SilentInstall
Hello,
I use NSIS to run a Java program, so I run it in SilentInstall. However, before it runs, I check if java.exe is present, if not I download the JRE using Inetc::get. My issue is that in "SilentInstall silent" mode, the /BANNER or /POPUP do not show the downloading progress windows. I know this was done on purpose since it is supposed to be "silent", however is there an option or a way to implement that the progress windows shows up, like a /NOSILENT option? That would be great! Thanks |
![]() |
![]() |
![]() |
#399 | |
Senior Member
Join Date: Aug 2007
Location: Paris, France
Posts: 304
|
Quote:
My NSIS plug-ins: http://wiz0u.free.fr/prog/nsis.php |
|
![]() |
![]() |
![]() |
#400 |
Junior Member
Join Date: Jan 2011
Posts: 2
|
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|