ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

http header expect:100-continue

I am trying to make a HTTP PUT request to a webservice, which I can't get to work because it keeps returning the following error in its header: HTTP/1.1 417 Expectation Failed

In the body it explains that I have a header "expect:100-continue" in my PUT request header (see image). 

 

I have tried everything to remove that particular header from my request (using LabviewHTTPclient.lvlib:removeheader.vi), but Labview still sends it.

 

2 questions:

- Is there a tool that lets me see what header/request labview actually sends to the webservice?

- how come I can't remove that header?

 

Thanks for your input!

 

BTW. I got it working in Curl, which I believe is used by Labview itself as well

 

 

0 Kudos
Message 1 of 2
(2,860 Views)

Hello Aartjan,

 

About the tool:

You could use wireshark (just an example).

 

About the header part:

Can you share your code or a simplification of it (Project and files [vi's..]) that allows me to test/reproduce/see what's going on?

To know what causes the issue we need to see your code.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 2 of 2
(2,847 Views)