API through a proxy - Thingtweet | ThingSpeak Apps | 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
API through a proxy - Thingtweet
Avatar
Aghillo
UK
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
1
July 1, 2011 - 11:43 am
sp_Permalink sp_Print sp_EditHistory

Hi – I've been working on using an arduino board to update a twitter status using ThingTweet. This works fine on a normal network without a proxy using the following snippet of code:

 

Connect directly to the api endpoint (api.thingspeak.com) then
client.print("POST /apps/thingtweet/1/statuses/update HTTP/1.1n");
client.print("Host: api.thingspeak.comn");
… etc
All is good….
However, on another network with a non-transparent proxy, I've been trying:
Connecting directly to the proxy (wwwcache.domainname.org) which doesn't have any form of local authentication, then trying a fully qualified POST:
client.print("Host: api.thingspeak.comn");
… etc
Which doesn't work.
Any bright ideas on what I could try / should be doing?
Many thanks,
Graham
Avatar
Hans
Natick, MA

Forum Posts: 390
sp_UserOfflineSmall Offline
2
July 2, 2011 - 2:01 am
sp_Permalink sp_Print

Here's the first thing comes to mind: do you have the Gateway address of the Arduino pointed to the proxy server?

I did some searching on the Arduino forum and did not see and definitive answers. Maybe we will be the trend setters if we can come up with a fix for proxies.

Avatar
Aghillo
UK
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
3
July 2, 2011 - 7:23 am
sp_Permalink sp_Print

That's a very good point - I will check Monday  and report back!

 

Avatar
Aghillo
UK
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
4
July 4, 2011 - 10:40 am
sp_Permalink sp_Print

All works fine now through a proxy - it was simply an extra '\r\n' that I'd missed in the POST headers 🙂

 

Graham

17

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
18 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