cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-631028 ] Fails saveing using -O if URL has spaces

From: <noreply_at_sourceforge.net>
Date: Wed, 30 Oct 2002 05:17:04 -0800

Bugs item #631028, was opened at 2002-10-30 05:17
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=631028&group_id=976

Category: client module
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: Fails saveing using -O if URL has spaces

Initial Comment:
Bug seems to stip spaces out of URLs when using the -
O option:-

In this version:-

curl 7.10 (win32) libcurl/7.10 OpenSSL/0.9.6g

This command works and prints the file on the screen:-

curl -x
proxy.ozzienet.net:8080 "http://somehost.com/url with
spaces in it/file.mpg"

This command fails:-

curl -O -x
proxy.ozzienet.net:8080 "http://somehost.com/url with
spaces in it/file.mpg"

Because it writes something like this into the file.mpg:-

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /urlwithspacesinit/file.mpg was not
found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.23 Server at somehost.com
Port 80</ADDRESS>
</BODY></HTML>

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=631028&group_id=976

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-30