Date: Wed, 3 Jun 2009 21:27:32 -0400
Reply-To: Joe Whitehurst <joewhitehurst@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Joe Whitehurst <joewhitehurst@GMAIL.COM>
Subject: Re: As If and Calling Twitter from SAS
Content-Type: text/plain; charset=ISO-8859-1
I have downloaded, installed and watched a movie about Fiddler2. I'm very
impressed with what I can understand so far. I do have a question that I
think is best posed on SAS-L because I think many others may be interested
in this tool if they knew more about it. I don't immediately see how to get
Fiddler2 to monitor HTTP requests submitted directly from SAS without any
browser involvement. I assume it is possible, but I have not yet read
enough of the docs to see how its done. Could you point me in the right
On Wed, Jun 3, 2009 at 8:36 PM, Joe Whitehurst <email@example.com>wrote:
> I knew I was missing something! I will get Fiddler right away! Thanks.
> On Wed, Jun 3, 2009 at 8:33 PM, Savian <firstname.lastname@example.org> wrote:
>> On Jun 3, 5:36 pm, joewhitehu...@GMAIL.COM (Joe Whitehurst) wrote:
>> > I was watching the French Open, in particular, the women's match
>> > Serena. Williams and Svetlana Kuznetsova, and was really struck by the
>> > shrieks each screamed each time they hit the ball. As a Kellian
>> > and follower of Hans Vaihinger--the originator of Philosophie des Als Ob
>> > (Philosophy of As If) that so influenced Kellyhttp://
>> en.wikipedia.org/wiki/Hans_Vaihinger)--Igot to wondering what
>> > baseball might be like if baseball players played "as if" they were
>> > tennis players. Everytime a pitcher hurled a pitch he would scream a
>> > the batter would scream a shreik eveytime he swung at a pitch, the
>> > would scream a shreik evey time he caught the ball or tried to peg a
>> > stealing a base, a base runner would scream a shreik evey time he
>> stomped a
>> > base or home plate, a fielder would scream a shreik evey time he caught
>> > ball or threw it to another player and so on. What a different game it
>> > be.. And why not? And don't get me started on what would happen in the
>> > workplace if SAS programmers programmed "as if" they were women tennis
>> > players.
>> > Now on to another topic. Have you tried calling Twitter from SAS?
>> > filename twtIn "\\sas\status_update.txt";
>> > filename twtOut temp;
>> > %let proxyhst="myproxy host"
>> > %let twUser="mytwitterusername";
>> > %let twPass="mytwitterpassword";
>> > proc http
>> > in=twtIn
>> > out=twtOut
>> > url="http://twitter.com/statuses/update.xml"
>> > method="post"
>> > proxyhost=&proxyhst
>> > proxyport=80
>> > webusername=&twUser
>> > webpassword=&twPass;
>> > run;
>> > I have but could not get it to work. I have a working userid and
>> > but I keep getiing an HTTP 401 error. Can you get this to work?
>> I have not (and probably won't unless I need to). However, look at
>> REST services,Twitter, and .NET to see if it can lend a hand.
>> Here's a video that might shed some light:
>> I work with REST services but I use C# for the consumption side.
>> Nevertheless, it might shed some clues on which parm you are missing.
>> Another suggestion is to download and run Fiddler and see what SAS is
>> passing to Twitter and use Fiddler to test various parms until you
>> have it operational. When in doubt, use Fiddler and manually make the
>> request until you determine what parms need to go out in SAS.
>> Fiddler is a MUST HAVE utility if you are working with the web.