Cannot read a binary file with red from http - red

write %test.zip read/binary https://sourceforge.net/projects/agena/files/latest/download?source=directory?SetFreedomCookie
doesn't download the file because there is a redirect. Is there a way to tell to follow redirect before reading ?

Related

Jmeter Importing using .xlsx file extension

Hello can someone help me import .xlsx on Jmeter, I tried to use this configuration unfortunately it doesn't work. Your response is highly appreciated. Thank you so much in advance.
Screenshot:
File Location
1st Payload/Request
2nd Payload Request:
Header
Response:
If you're using "Files upload" tab and your server expects multipart/form-data content type you should tick the corresponding box in JMeter's HTTP Request sampler:
Going forward be informed that it's possible to record the file upload request from your browser (or other application) using JMeter's HTTP(S) Test Script recorder, just make sure to copy the file(s) you will be uploading to JMeter's "bin" folder so JMeter could properly generate the relevant HTTP Request sampler and the HTTP Header Manager.
More information: Recording File Uploads with JMeter

Jmeter - How load HTTP Body text from file directory

I have multiple HTTP body data saved in couple of text files in one directory. I need to load that HTTP body data from those files which in that directory into SOAP request via jmeter.
The easiest way to get the file names into a JMeter Variable is using Directory Listing Config plugin
Once done you can reference each and every file content using __FileToString() function like:
${__FileToString(${body},,)}
This way each virtual user will send the content of the next file on each iteration:

Open a file in a domino server through lotus application

I want to open file from a lotus application that i saved in the my Domino Server (IP : 172.17.0.55) through an action button. I execute the formula below but i have this error message "unable to invoke program":
d:="\\172.17.0.55\folder1\file1.txt";
#Command([Execute]; d)
Folder1 is a shared folder into Data repository : Lotus\Domino\Data
Sharing a subfolder within the Domino server's Data folder is a bad idea.
That said, if you really want to do this, your problem is that Notes's #Command([Execute] does not know anything about your system's default program bindings for file extensions, so you're going to have to use it to launch something that does. I.e., something like this:
d:="cmd.exe /c \\172.17.0.55\folder1\file1.txt"
I recommend (asserting your Domino server run http task) to put the folder1 under html path:
/domino/data/domino/html/folder1
Write there the file1.txt.
To open the file (not edit but only read) open the following URL:
http://dominoserver/folder1/file1.txt
which can be done by
#URLOpen("http://172.17.0.55/folder1/file1.txt")

Are you able to create clean URLs with Wget?

I'm attempting to create a mirror of a WordPress site with clean URLs (i.e. http://example.org/foo not http://example.org/foo.php). When Wget mirrors the site, it gives all pages and links a ".html" extension (i.e. http://example.org/foo.html).
Is it possible to set options for Wget to create a clean URL structure, so that the mirrored file corresponding to the page "http:example.org/foo" would be "/foo/index.html" and the link to that page would be "http:example.org/foo"? If so, how?
If I understand your question correctly, you're asking for what is the default behaviour of Wget.
Wget will only add the extension to the local copy, if the --adjust-extension option has been passed to it. Quoting the man page for Wget:
--adjust-extension
If a file of type application/xhtml+xml or text/html is downloaded and the URL does not end with the regexp \.[Hh][Tt][Mm][Ll]?, this option will cause the suffix .html to be appended to the
local filename. This is useful, for instance, when you're mirroring a remote site that uses .asp pages, but you want the mirrored pages to be viewable on your stock Apache server. Another good
use for this is when you're downloading CGI-generated materials. A URL like http://example.com/article.cgi?25 will be saved as article.cgi?25.html.
However, what you seem to be asking for, that Wget saves example.org/foo as /foo/index.html is actually the default option. If you're seeing some other output, you should post the complete output of Wget with the --debug switch.

500 Internal Server error in pastie.el

Im using the pastie.el file located at http://www.emacswiki.org/emacs/download/pastie.el. This is supposed to help us post code to pastie.org directly from emacs.
If the file im pasting contains "<" symbol then i get a 500 Internal Server Error message in emacs,because of which im unable to post ruby files, php files etc.
Any way to fix this in the elisp file ?
Thank You
There is a problem with xml escaping in the pastie.el located on emacswiki.org. I found a working version at https://bitbucket.org/sid0/.emacs/raw/837539ad28ca/elisp-files/pastie.el .