Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows WebBrowser problem with Ajax code in a page - c#
    primarykey
    data
    text
    <p>I'm downloading a site for its content using a Webcrawler I wrote with Microsoft WebBrowser. </p> <p>A part of the site's content is sent only after some kind of verification sent from the client side - my guess is that its cookies / session cookies.</p> <p>When i'm trying to download the page from my crawler i see (with Fiddler's help) that the inner link for the ajax sends 'false' for one of the parameters and the data is not received. When I try to perform the same action from any browser, Fiddler shows that the property is sent as '1'.</p> <p>After a day of testing, any lead will be grateful - Is there a way to manipulate this property? plant cookies? any other idea?</p> <p>Following <strong>khunj</strong> answer, I'm adding Headers from IE and from my WebBrowser:</p> <p><strong>In both headers i removed fields which have the same value</strong></p> <p>From IE:</p> <pre><code>GET /feed/prematch/1-1-234562-8527419630-1-2.dat HTTP/1.1 x-requested-with: XMLHttpRequest Referer: http://www.mySite.com/ref=12345 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 8.0) Connection: Keep-Alive Cookie: __utma=1.1088924975.1299439925.1299976891.1300010848.14; __utmz=1.1299439925.1.1.utmcsr=(direct)|utmccn= (direct)|__utmb=2.1.10.1300010848; __utmc=136771054; user_cookie=63814658; user_hash=58b923a5a234ecb78b7cc8806a0371c5; user_time=1297166428; infobox_8=1; user_login_id=12345; mySite=5e1c0u8g6qh41o2798ua2bfbi3 HTTP/1.1 200 OK Date: Sun, 13 Mar 2011 10:07:38 GMT Server: Apache Last-Modified: Sun, 13 Mar 2011 10:07:25 GMT ETag: "26a6d9-19df-49e5a5c9ed140" Accept-Ranges: bytes Content-Length: 6623 Cache-Control: max-age=0, no-cache, no-store, must-revalidate Pragma: no-cache Expires: Wed, 11 Jan 1984 05:00:00 GMT Connection: close Content-Type: text/plain Content-Encoding: gzip </code></pre> <p>From WebBrowser:</p> <pre><code>GET /feed/prematch/1-1-234562-8527419630-false-2.dat HTTP/1.1 x-requested-with: XMLHttpRequest Referer: http://www.mySite.com/ref=12345 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0) Connection: Keep-Alive Cookie: __utma=1.1782626598.1299416994.1299974912.1300011023.129; __utmb=2.1.10.1300011023; __utmz=1.1299416994.1.1.utmcsr= (direct)|utmccn=(direct)|__utmc=136771054; user_cookie=65192487; user_hash=6425034050442671103fdd614e4a2932; user_time=1299416986; user_full_time_zone=37;user_login_id=12345; mySite=q9qlqqm9bunm9siho32tdqdjo0 HTTP/1.1 404 Not Found Date: Sun, 13 Mar 2011 10:10:33 GMT Server: Apache Content-Length: 313 Connection: close Content-Type: text/html; charset=iso-8859-1 </code></pre> <p>Thanks in advance,</p> <p>Oz.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload