首页 > cef > CEF-设置referer/PostData
2017十一月2

CEF-设置referer/PostData

参看:http://magpcss.org/ceforum/viewtopic.php?f=17&t=14766

目前看来OnBeforeResourceLoad只能改referer,postdata还得想办法处理

参看http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=11936&p=22024&hilit=postdata#p22024

必须先加载一个url,要在render成功后再处理LoadRequest:

You need to load at least one URL before you can use LoadRequest. For example, you can pass "about:blank" a
s the |url| parameter to CefBrowserHost::CreateBrowser. Once the browser has been created you can then call LoadRequest().
 See RequestSendRecvTestHandler in tests/unittests/request_unittest.cc for an example.

方式1:

在OnAfterCreated中加载

about:blank

然后在OnLoadEnd中LoadRequest

方式2:

在创建时传入

about:blank

然后在OnAfterCreated中LoadRequest

特别的是LoadRequest的SetUrl必须为全路径,带http的,

而SetReferrer必须在OnBeforeResourceLoad中调用

osr模式不支持postdata

文章作者:hgy413
本文地址:http://hgy413.com/4488.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!

16 Responses to “CEF-设置referer/PostData”

  1. #1 minecraft 回复 | 引用 Post:2018-10-03 23:31

    It’s an amazing post in favor of all the web users; they will obtain benefit from it I am sure.

  2. #2 minecraft 回复 | 引用 Post:2018-10-04 11:20

    Hey! I’m at work browsing your blog from my new iphone
    3gs! Just wanted to say I love reading your blog and look forward to
    all your posts! Carry on the great work!

  3. #3 minecraft 回复 | 引用 Post:2018-10-04 17:46

    I couldn’t refrain from commenting. Exceptionally well written!

  4. #4 minecraft 回复 | 引用 Post:2018-10-06 02:27

    What’s up, its good paragraph about media print, we all be aware
    of media is a impressive source of data.

  5. #5 minecraft 回复 | 引用 Post:2018-10-06 13:31

    Way cool! Some very valid points! I appreciate you writing this article and also the rest of the website is extremely
    good.

  6. #6 minecraft 回复 | 引用 Post:2018-10-07 02:13

    It’s a shame you don’t have a donate button! I’d definitely donate to this superb blog!
    I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account.
    I look forward to brand new updates and will talk about this website with my Facebook group.
    Talk soon!

  7. #7 minecraft 回复 | 引用 Post:2018-10-07 12:18

    Right now it appears like Drupal is the preferred blogging platform out there right now.
    (from what I’ve read) Is that what you’re using on your blog?

  8. Does your website have a contact page? I’m having a tough time locating it but,
    I’d like to shoot you an e-mail. I’ve got some creative ideas for your
    blog you might be interested in hearing. Either way, great site and I look forward to seeing it improve over time.

  9. I do not even know the way I stopped up right here, but I believed this submit used to be great.
    I don’t recognise who you might be however certainly you’re going to a famous
    blogger in the event you aren’t already. Cheers!

  10. #10 ShaylaLwxxa 回复 | 引用 Post:2018-10-11 05:40

    Incredible update of captchas regignizing software “XRumer 16.0 + XEvil”:
    captcha regignizing of Google (ReCaptcha-2 and ReCaptcha-3), Facebook, BitFinex, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another size-types of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can use XEvil 4.0 with any most popular SEO/SMM programms: iMacros, XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? There are a lot of impessive videos about XEvil in YouTube.

    FREE DEMO AVAILABLE!

    Good luck 😉

  11. #11 Benefits of Coconut Oil 回复 | 引用 Post:2018-10-19 05:19

    It is appropriate time to make some plans for the long
    run and it is time to be happy. I’ve read this
    publish and if I could I desire to counsel you few fascinating
    issues or tips. Maybe you could write next articles referring to this article.
    I want to read more issues about it!

  12. Link exchange is nothing else however it is just placing the other person’s website link on your
    page at appropriate place and other person will also do same for you.

  13. Greetings! This is my first comment here so I just wanted to give a quick shout out and tell you I genuinely enjoy reading your blog posts.
    Can you suggest any other blogs/websites/forums that cover the same topics?

    Thanks!

  14. #14 Sling TV 回复 | 引用 Post:2018-11-11 22:47

    An outstanding share! I’ve just forwarded this onto a
    co-worker who was conducting a little research on this.
    And he actually ordered me lunch simply because I
    found it for him… lol. So let me reword this…. Thanks for the meal!!
    But yeah, thanks for spending some time to discuss this topic here on your
    website.

  15. #15 Sling TV 回复 | 引用 Post:2018-11-15 08:06

    Hey! This post could not be written any better! Reading this post reminds me of my old room mate!
    He always kept chatting about this. I will forward this article to him.
    Pretty sure he will have a good read. Thank you for sharing!

  16. What’s up, its nice article about media print, we all
    be familiar with media is a impressive source of facts.

发表评论