[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Example 10, twitter update



   I am trying to get the twitter update working but keep getting a 401
   error and getting a message "This page requires a user-id & password."

   I logged in to twitter to make sure my userid and password is working
   on its website.

   Maybe I'm using the incorrect user id "@CraigJake" or should I be using
   my email address?

   I have attached the debug log.


   Thanks,


   Craig


   Confidentiality Notice: This e-mail message, including any attachments,
   is for the sole use of the intended recipient(s) and may contain
   confidential and privileged information. Any unauthorized review, use,
   disclosure or distribution is prohibited. If you are not the intended
   recipient, please contact the sender by reply e-mail and destroy all
   copies of the original message. Unless expressly stated in this e-mail,
   nothing in this message or any attachment should be construed as a
   digital or electronic signature.
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V7R1M0

http_setauth(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: urlmutual.com
DNS server found: 172.17.3.5
DNS server found: 172.27.3.3
DNS server found: 208.67.222.222
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /statuses/update.xml HTTP/1.1
Host: twitter.com
User-Agent: http-api/1.24
Content-Type: application/x-www-form-urlencoded
Content-Length: 47
Authorization: Basic QENyYWlnSmFrZTpqYWtlcnM=


senddoc(): entered
status=is+testing+HTTPAPI+from+ScottKlement.com
recvresp(): entered
HTTP/1.1 401 Unauthorized
Date: Fri, 13 Jul 2012 12:12:04 GMT
Status: 401 Unauthorized
X-MID: fde8e0fa8a8814ed058698f043bafdf9bf789298
Content-Type: application/xml; charset=utf-8
WWW-Authenticate: OAuth realm="http://twitter.com";
X-Transaction: a215d56b4f14586e
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
Content-Length: 123
Expires: Tue, 31 Mar 1981 05:00:00 GMT
X-Runtime: 0.01709
X-Frame-Options: SAMEORIGIN
Pragma: no-cache
Last-Modified: Fri, 13 Jul 2012 12:12:04 GMT
Set-Cookie: k=10.34.78.115.1342181524342431; path=/; expires=Fri, 20-Jul-12 12:12:04 GMT; domain=.twitter.com
Set-Cookie: guest_id=v1%3A134218152435033003; domain=.twitter.com; path=/; expires=Mon, 14-Jul-2014 00:12:04 GMT
Set-Cookie: dnt=; domain=.twitter.com; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
Set-Cookie: lang=en; path=/
Set-Cookie: _twitter_sess=BAh7CToPY3JlYXRlZF9hdGwrCIfDQIA4AToMY3NyZl9pZCIlNmJjYTJhZWMz%250AZmExMmQyZTM1YWM3NGViMDM4ZTMzYTgiCmZsYXNoSUM6J0FjdGlvbkNvbnRy%250Ab2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA6B2lkIiVjOWUy%250AMDhlNWI0ZjVhZmU3MmRjMDlhZjFmNGRmNWY1Mg%253D%253D--d2b19dffe93beb90714fe0d0876a50b2dabc3a6e; domain=.twitter.com; path=/; HttpOnly
Vary: Accept-Encoding
X-XSS-Protection: 1; mode=block
Server: tfe


SetError() #13: HTTP/1.1 401 Unauthorized
recvresp(): end with 401
recvdoc parms: identity 123
interpret_auth(): entered
SetError() #36: This page requires a user-id & password
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------