API through a proxy - Thingtweet | ThingSpeak Apps | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





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

sp_Feed sp_TopicIcon
API through a proxy - Thingtweet
No permission to create posts
July 1, 2011
11:43 am
Avatar
Aghillo
UK
New Member
Members
Forum Posts: 3
Member Since:
July 1, 2011
sp_UserOfflineSmall Offline

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
July 2, 2011
2:01 am
Avatar
Hans
Natick, MA

Admin
Forum Posts: 396
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

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.

July 2, 2011
7:23 am
Avatar
Aghillo
UK
New Member
Members
Forum Posts: 3
Member Since:
July 1, 2011
sp_UserOfflineSmall Offline

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

 

July 4, 2011
10:40 am
Avatar
Aghillo
UK
New Member
Members
Forum Posts: 3
Member Since:
July 1, 2011
sp_UserOfflineSmall Offline

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:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

celinabw2, FitoSprayscroma, LunnonGor, lancevl16, bernicenk60, veronicadq18

Administrators: Hans: 387, lee: 457