无法上传文件!名义上使用 Rebol

发布于 2024-08-10 00:42:45 字数 16 浏览 1 评论 0原文

有办法绕过这个吗?

Is there a way to circumvent this ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

清泪尽 2024-08-17 00:42:45

这是 Rebol v2.x 网络协议中的一个错误。这是一个有效的网址!类型。通常,您可以执行以下操作:

>> type? http://user:pass@myserver/test%21file.txt
== url!

看,这是一个有效的 URL!

>> read http://user:pass@rtibackup/test%21file.txt
** User Error: URL error: http://user:pass@rtibackup/test!file.txt
** Near: read http://user:pass@rtibackup/test!file.txt

糟糕,网络协议不喜欢该 URL。

但在这种情况下,它确实可以使用以下约定(对于包含@符号的密码也有用):

>> write [
    scheme: 'ftp
    user: "myusername"
    pass: "mypassword"
    host: "myserver"
    target: %test!file.txt
] {Test}

我希望这有帮助!

That's a bug in Rebol v2.x with the network protocols. It is a valid URL! type. Normally, you could do a trick like this:

>> type? http://user:pass@myserver/test%21file.txt
== url!

See, it's a valid URL!

>> read http://user:pass@rtibackup/test%21file.txt
** User Error: URL error: http://user:pass@rtibackup/test!file.txt
** Near: read http://user:pass@rtibackup/test!file.txt

Oops, the network protocols don't like that URL.

But in this case, it does work using the following convention (also useful for passwords that contain the @ symbol):

>> write [
    scheme: 'ftp
    user: "myusername"
    pass: "mypassword"
    host: "myserver"
    target: %test!file.txt
] {Test}

I hope this helps!

酒解孤独 2024-08-17 00:42:45

如果这仍然是一个问题,则可能是 URL 解析代码有问题。特定字符是特殊的,但不是很多,尤其是“!”。

Rebol 有一个更新版本,称为 R3。检查那里是否还有问题。如果是这样,R3 是开源的,可以快速修复。

If this is still a problem, it's probably the URL parsing code that's an issue. Specific characters are special, but not that many, and especially not "!".

There's a newer version of Rebol called R3. Check if it's still a problem there. If so, R3 is open source and can be fixed quickly.

喵星人汪星人 2024-08-17 00:42:45

当我使用 .net 执行此操作时,我只是删除有问题的项目。我从未使用过 Rebol,但也许这样的东西可能有用?

change find fileuploaded "!" ""
probe fileuploaded

正在查看此页面上的信息: http://www.rebol.com/docs /words/wchange.html

希望它能帮助您或至少为您指明正确的方向。

When I do this using .net I just remove the offending item. I've never used Rebol but perhaps something like this might work?

change find fileuploaded "!" ""
probe fileuploaded

Was looking at the information on this page: http://www.rebol.com/docs/words/wchange.html

hope it helps or at least points you in the right direction.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文