Including nil HTTP header

E

Edward Liu

I am trying to connect to a web service with an HTTP request, and I am
working around with the HTTP headers. I am able to create my own custom
headers for the HTTP request, and everything is fine when the header has
a non-nil value associated to it. However, when I try to set a nil
value to a custom HTTP header, I do not the header included in the HTTP
message. Is there a way to include a header with a nil value in the
HTTP message? Thanks!
 
M

mortee

Just out of the top of my head: what about setting the header entry to
an empty string value ("")?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,270
Messages
2,571,352
Members
48,036
Latest member
nickwillsonn

Latest Threads

Top