cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to send fragment part of URL?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 16 Nov 2011 12:54:42 +0100 (CET)

On Wed, 16 Nov 2011, chaitanya sonavale wrote:

>> You could try URI-encoding the #. (That is, use %23 instead of #)
>
> The requirement is to send the fragment part of data to server which is
> getting truncated by libcurl.

The fragment part of a URI is not meant to be sent in the HTTP request - it is
used to identify a specific section in the resource that will be fetched by
using the particular URI. If you want to force #-letter into the request I
think encoding it sounds like a perfect idea.

Are you suggesting your target server doesn't handle '#' done with percent
encoding?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-16