Adding support for getting body of requests or responses #10158
Comments
|
ariya.hi...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented: |
|
ariya.hi...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
jgorn...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
ariya.hi...@gmail.com commented:
|
|
webmas...@webmaster.ms commented:
|
|
Are there any documentation about this feature? |
|
I didn`n found documentation |
ariya#10158 (reverted from commit c4df640)
if url matches one of the patterns in 'page.captureContent' property ariya#10158 (reverted from commit 327f91d)
Also fixed same code in filesystem module ariya#10158 (reverted from commit d0fde08)
ariya#10158 (reverted from commit 977b280)
ariya#10158 (reverted from commit 616d991)
ariya#10158 (reverted from commit 87625a2)
ariya#10158 (reverted from commit 434d4e0)
ariya#10158 (reverted from commit 434d4e0)
How long I can use reponse body in released version?I will use proxy for it. :( |
|
This fix was removed from 2.1.1 - why? |
|
I was able to hack together some code together to re-add this functionality. Basically I edited QNetworkReply to overload read/readAll, intercept the data, and dump it to a QByteArray. I then exposed and Base64 encoded it. It's not nice (one might even call it terrible), but it works. |
|
@jbruggeman As I really would like this feature, could you explain how to set this up using the sources you provided? I am not sure how I would get the build to pick up the recompiled qtbase for example (preferably without overwriting the system wide qtbase). |
|
Hi, Just clone the repos and follow the normal build steps for phantom. On Tuesday, 30 August 2016, jksecurity notifications@github.com wrote:
|
|
@jbruggeman ... Can you explain the process however? I'm not skilled in "build process" but I need the "body response" :( I have already build the Ariya's version with the method that i find i this page: http://phantomjs.org/build.html... but I don't think it's correct also for yours release. |
|
@jbruggeman would you please supply a compiled phantomjs with onResourceReceived response.body?thanks a lot.my e-mail is :12682082@qq.com |
|
@MichalBu can you use onResourceReceived response.body now ? I encountered this issue,can you help me ? |
|
I don't know, this situation feels weird to me. I already switched to slimerjs, it's also faster and not require few hours to compile |
|
The problem is that this feature broke AJAX requests. That's why we reverted it. |
|
@Paxa @vitallium Thank you for quick replies gentlemen! |
|
Hello. I also need the body with the content to download some pdf files from a website. I am sorry, I think this is an obvious comment but here on file 'networkaccessmanager.cpp' on line 454 (https://github.com/ariya/phantomjs/blob/master/src/networkaccessmanager.cpp#L454) the body property is assigned to emtpy string so how can we expect that be filled? Why can't we take the content from QNetworkReply or that object hasn't got the content? |
|
Can somebody pretty please update on this issue? |
|
I also require this "must have" feature. |
|
I don't understand why don't you answer.Because you believe that the answer is already mentioned above? |
|
I find that I can get postData in requestData for POST requests by listening the event onResourceRequested.But for PUT or PATCH methods, postData do not exist , is there anyway I can get the data for PUT or PATCH?or I should add some extra settings ? Also when I find the method is a "?" when I try to send PATCH or DELETE Ajax requests |
|
Set up ChromeDriver with headless Chrome. PhantomJS is dead.
…On Wed, Nov 15, 2017 at 11:28 PM, amanda ***@***.***> wrote:
I find that I can get postData in requestData for POST requests by
listening the event onResourceRequested.But for PUT or PATCH methods,
postData do not exist , is there anyway I can get the data for PUT or
PATCH?or I should add some extra settings ? Also when I find the method is
a "?" when I try to send PATCH or DELETE Ajax requests
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10158 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABf9Ve35fSUiQvj50_Qhj_ymgexAj2DGks5s2-QogaJpZM4AgfdU>
.
|
saleh...@gmail.com commented:
Disclaimer:
🌟 31 people had starred this issue at the time of migration.
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #158.
The text was updated successfully, but these errors were encountered: