Losing the first field | Arduino | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?
sp_Feed sp_TopicIcon
Losing the first field
Avatar
JChristensen
Grand Blanc, MI

Gold
Forum Posts: 35
sp_UserOfflineSmall Offline
1
July 15, 2011 - 6:12 pm
sp_Permalink sp_Print

Just getting started here, have things working fairly well, or mostly.  Sending three fields, the first one doesn't seem to be making it, field2 and field3 are fine.  field1 is just empty or null, <field1 nil="true"/> in the XML view.

Below is the POST, which I trapped by replacing client.print with Serial.print and then copying it from the monitor window.  I'm not seeing what the problem is.  My channel is http://www.thingspeak.com/channels/878

POST /update HTTP/1.1
Host: api.thingspeak.com
X-THINGSPEAKAPIKEY: XXXXXXXXXXXXXXXX
Content-Type: application/x-www-form-urlencoded
Content-Length: 34
Connection: close

field1=1214&field2=3&field3=70.8

 

Avatar
JChristensen
Grand Blanc, MI

Gold
Forum Posts: 35
sp_UserOfflineSmall Offline
2
July 15, 2011 - 7:28 pm
sp_Permalink sp_Print

Found the problem, wasn't getting the content length quite right.  Picky, this POST... Embarassed

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

winnieeq69

AutoCheernpen

Bostermet

engladNed

iivenul

olewaeayafaku

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee