Swing HTML parser does not return correct links?

Discussion in 'Java' started by Gerwin, Mar 5, 2008.

  1. Gerwin

    Gerwin Guest

    I'm having a problem retrieving href links from the anchor tags of
    some pages. The href /b/ref=amb_link_5647902_6?
    ie=UTF8&node=18&pf_rd_m=ATVPDKIKX0DER&pf_rd_s=center-3&pf_rd_r=1MHH104MH2P96KABQ0SC&pf_rd_t=101&pf_rd_p=316661801&pf_rd_i=1000

    is being returned by the Swing HTML parser as /b?ie=UTF8&node=18

    I'm using the SAX like interface of the HTMLEditorKit.

    Am I missing a setting or is there something "wrong" with the
    HTMLEditorKit implementation?

    kind regards,
    Gerwin
     
    Gerwin, Mar 5, 2008
    #1
    1. Advertising

  2. Gerwin

    Gerwin Guest

    Nevermind. Solved it. The website was not happy with my user agent
    name

    On Mar 5, 9:47 am, Gerwin <> wrote:
    > I'm having a problem retrieving href links from the anchor tags of
    > some pages. The href /b/ref=amb_link_5647902_6?
    > ie=UTF8&node=18&pf_rd_m=ATVPDKIKX0DER&pf_rd_s=center-3&pf_rd_r=1MHH104MH2P96KABQ0SC&pf_rd_t=101&pf_rd_p=316661801&pf_rd_i=1000
    >
    > is being returned by the Swing HTML parser as /b?ie=UTF8&node=18
    >
    > I'm using the SAX like interface of the HTMLEditorKit.
    >
    > Am I missing a setting or is there something "wrong" with the
    > HTMLEditorKit implementation?
    >
    > kind regards,
    > Gerwin
     
    Gerwin, Mar 5, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joel Hedlund
    Replies:
    2
    Views:
    554
    Joel Hedlund
    Nov 11, 2006
  2. Joel Hedlund
    Replies:
    0
    Views:
    326
    Joel Hedlund
    Nov 11, 2006
  3. Greenhorn
    Replies:
    15
    Views:
    882
    Keith Thompson
    Mar 6, 2005
  4. S.T
    Replies:
    2
    Views:
    607
  5. Replies:
    1
    Views:
    249
Loading...

Share This Page