HTML.ElementFromURL containing #

Hi, I’m trying to open a url using HTML.ElementFromURL with a string that has the # symbol in it. Logging the url string beforehand reveals that it contains all the info, i.e.


http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dinstant-video&field-keywords=test#/ref=sr_nr_p_85_0?rh=n%3A2625373011%2Cn%3A%212644981011%2Cn%3A%212644982011%2Cn%3A2858778011%2Ck%3Atest%2Cp_85%3A2470955011&keywords=test&ie=UTF8



but when I try putting it through HTML.ElementFromURL, the log gives

<br />
Requesting 'http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Dinstant-video&field-keywords=test'<br />




where it truncates everything after the # symbol. I've tried escaping it with a \ in front with no success. I've also tried replacing it altogether with %23 from the url encoding tables, but then the page doesn't open correctly, i.e. the prime option is not checked.

Any thoughts on how to proceed?

Hello Synlor,

The # in the url is used to navigate to anchors inside the page or do some smart AJAX (javascript) stuff. The part after the # also never gets sent to the server when you request a webpage.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.