curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: a URL API ?

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 9 Aug 2018 14:15:39 +0200 (CEST)

On Thu, 9 Aug 2018, Daniel Stenberg via curl-library wrote:

(replying to myself...9

> /* append to query, ask for encoding */
> curl_url_set(h, CURLUPART_QUERY, "company=AT&T", CURLU_APPENDQUERY|

> - CURLU_URLENCODE with CURLU_APPENDQUERY set, will skip the '=' letter when
> doing the encoding

... or should it perhaps just skip the *first* '=' ?

If we ponder a user wants to add a "name=contents" pair, I figure the first
assignment is the one that shouldn't be encoded but subsequent ones then
presumably should?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-08-09