Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Expect Header Issue for .NET developers
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tom Morris  
View profile  
 More options Dec 24 2008, 2:57 pm
From: Tom Morris <t...@tommorris.org>
Date: Wed, 24 Dec 2008 11:57:49 -0800 (PST)
Local: Wed, Dec 24 2008 2:57 pm
Subject: Re: Expect Header Issue for .NET developers
On Dec 24, 4:31 am, JakeS <jakesteven...@gmail.com> wrote:

> Looks like twitter is updating something and their servers are
> returning error 417 for a lot of requests.  I looked into it and found
> that .NET automatically includes an Expect header containing "100-
> continue" on every request unless you specifically tell it not to.

> So for any .NET devs having trouble, you can set
> System.Net.ServicePointManager.Expect100Continue = false before making
> your request to get past this issue.

A lot of libraries follow this behaviour. A Twitter app I wrote in PHP
a while back has been logging 417s most of today. I logged in and
added:
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));

Other libcurl-based libraries may be affected. There are plenty of
reports about 417 and Expect on the cURL website - http://curl.haxx.se/
- and on the websites of particular language bindings.

--
Tom Morris (@tommorris)
<http://tommorris.org>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google