curl-library
Re: Spaces in URLs
Date: Tue, 20 Aug 2002 09:02:59 -0400
> Yes and no. There's the curl_escape() function that can URL encode a given
> string for you, but you will need to take care as you don't want the full
> string URL encoded (for example, the function can't know if the slashes are
> meant as slashes or if they should be URL encoded to be passed literally).
Remember that the example given had the space in the query string, not in the
url path. As such, using the curl_escape() function on the entire query string
(the part starting just after the "?" thru to the end) is exactly what the
doctor ordered...
Peace. -njg
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-08-20