cURL / Mailing Lists / curl-users / Single Mail

curl-users

答复: Re: 转发: About headers with no contents.

From: Jason Liu <jason.liu_at_torchmobile.com.cn>
Date: Mon, 2 Apr 2012 09:05:44 -0400

I will have a try.
Thank you very much.

----- 原始消息 -----
发件人: curl-users-bounces_at_cool.haxx.se <curl-users-bounces_at_cool.haxx.se>
收件人: curl-users_at_cool.haxx.se <curl-users_at_cool.haxx.se>
发送时间: Mon Apr 02 09:00:40 2012
主题: Re: 转发: About headers with no contents.

On Mon, Apr 02, 2012 at 08:46:41AM -0400, Jason Liu wrote:
> I want to send a request with headers like "Empty-header:".
> But libcurl can only send this header like "Empty-header:""". Many sites don't consider this header right and return 400.
>
> So how can I send as "Empty-header:"?

Since version 7.23.0, you can send an empty header by changing the colon to
a semicolon, i.e. Empty-header; is converted and sent as Empty-header:

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-02