Http身份验证在Firefox 3书签 [英] Http Auth in a Firefox 3 bookmarklet

查看:171
本文介绍了Http身份验证在Firefox 3书签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我从命令行测试它:



  wget -O  -  --no-check-certificate \ 
https:// seconduser:thepassword@api.del。 icio.us/v1/posts/add?url=http://seet.dk&description=test





然后,我想在我的Firefox中创建一个书签。我搜索了一下,找到了点点滴滴,最后得到了:

  javascript:void(
open('https:/ /seconduser:password@api.del.icio.us/v1/posts/add?url='
+ encodeURIComponent(location.href)
+'& description ='+ encodeURIComponent(document.title ),
'delicious','toolbar = no,width = 500,height = 250'

);

但是发生的一切就是我从del.icio.us得到这个:

 <?xml version =1.0standalone =yes?> 
< result code =access denied/>
<! - fe04.api.del.ac4.yahoo.net未压缩/分块Thu Aug 7 02:02:54 PDT 2008 - >

如果我然后转到地址栏并按回车键,它将变为:

 <?xml version ='1.0'standalone ='yes'?> 
< result code =done/>
<! - fe02.api.del.ac4.yahoo.net无压缩/分块Thu Aug 7 02:07:45 PDT 2008 - >

任何想法如何直接从书签中获得它?

解决方案

您可以嗅探流量,找到实际发送的内容吗?它是否发送任何认证数据,这是不正确的或被呈现在服务器不喜欢的形式,或者从来没有被发送的火狐?$ /

Im trying to create a bookmarklet for posting del.icio.us bookmarks to a seperate account.

I tested it from the command line like:

wget -O - --no-check-certificate \
"https://seconduser:thepassword@api.del.icio.us/v1/posts/add?url=http://seet.dk&description=test"

and this works great.

I then wanted to create a bookmarklet in my firefox. I googled and found bits and pieces and ended up with:

javascript:void(
    open('https://seconduser:password@api.del.icio.us/v1/posts/add?url='
          +encodeURIComponent(location.href)
          +'&description='+encodeURIComponent(document.title),
          'delicious','toolbar=no,width=500,height=250'
        )
    );

but all that happens is that I get this from del.icio.us:

<?xml version="1.0" standalone="yes"?>
<result code="access denied" />
<!-- fe04.api.del.ac4.yahoo.net uncompressed/chunked Thu Aug  7 02:02:54 PDT 2008 -->  

If I then go to the address bar and press enter, it changes to:

<?xml version='1.0' standalone='yes'?>
<result code="done" />
<!-- fe02.api.del.ac4.yahoo.net uncompressed/chunked Thu Aug  7 02:07:45 PDT 2008 -->

Any ideas how to get it to work directly from the bookmarks?

解决方案

Can you sniff the traffic to find what's actually being sent? Is it sending any auth data at all and it's incorrect or being presented in a form the server doesn't like, or is it never being sent by firefox at all?

这篇关于Http身份验证在Firefox 3书签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆