Problem in "Content-Type: multipart/form-data;"
Hi Everyone,
I have a site to scrap, when i click a link it sends some post data such as "Content-Type: multipart/form-data; boundary=---------------------------239882929017590
Content-Length: 1345
-----------------------------239882929017590
Content-Disposition: form-data; name="property_types"
MOB
-----------------------------239882929017590
Content-Disposition: form-data; name="country" "
Can anyone say how i have to send the POST data through screen-scraper.
Thanks in advance,
Vivek.
Problem in "Content-Type: multipart/form-data;"
vivek,
In version 4.0.1a we added an as-yet-undocumented method, setForceMultiPart. If you pass it a value of "true" "before file is scraped" it should allow you to send your post request as multipart.
scrapeableFile.setForceMultiPart( true );
Let us know if that works for you.
-Scott