Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8037689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:59:50+00:00 2026-06-05T02:59:50+00:00

I was searching for a method to access & tamper the raw packet data

  • 0

I was searching for a method to access & tamper the raw packet data sent and received by a Qt application but could not find anything. Is there any method?
Or if not the application at least a method to access the packet data from a QWebView.

Is there any method to achieve any of the above two?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:59:51+00:00Added an answer on June 5, 2026 at 2:59 am

    I’m sorry, Sam, I cannot make it work. I’ve been trying everything I can imagine, but nothing goes as it would have been desired.

    Let’s make a short list of options and what can and cannot be done:

    • You can access the retrieved web page by means of obtaining the QWebFrame with webView->page()->currentFrame() and then accessing to methods like setContents(), setHtml(), toHtml() or toPlainText(). You can, by those functions, change dynamically the web page shown in the widget.

    • You can access the raw response (as an array of bytes) received for each request, by means of the method reply->readAll() in the replyFinished() slot.

    • It’s possible to intercept the requests, by overriding the QNetworkAccessManager::createRequest() method in a network access manager of your own. There you can access the URL and the headers sent in the request and change them or cancel the request.

    But… you want to access to the request and replied data for each request.

    Access to the request is easy, it’s already been explained by the override to the createRequest() method in a custom QNetworkAccessManager. But let’s talk about the other part:

    • For what I’ve seen, the reply obtained from the request is read-only and IT CAN’T BE CHANGED, as it’s hard-coded in the source code for QNetworkReply.

    • You cannot use the writeData() function of QNetworkReply, as it is hardcoded to simply do return -1!!!

    • You can try to subclass a QNetworkReply of your own and return it in the createRequest() method of a custom QNetworkAccessManager. You must override the functions readAll(), bytesAvailable(), and abort(). Curiously, this method works only if the request is made to a non-HTTP destination. I think the internals of QNetworkAccessManager invokes different implementations of the QNetworkReply depending of the protocol used (HTTP, FTP, …). So this worked in a sense, but not in the way we want. This method can be used to return a predefined web page under certain conditions, for example.

    • Considering the fact that QNetworkAccessManager::createRequest() must return a QNetworkReply object, I cannot see any combination of subclassing that permits tampering in the replied byte array. It’s really well protected and you must reimplement everything on those classes to be able to achieve your goal. Almost copy-paste the source classes of all the QtNetwork part and make your own implementation.

    So I think that the answer would be: “No, it seems that it cannot be done exactly as you ask; only partially“.

    Sorry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can any one guide me for the method/approch to implement searching-access-list-boxes-data-as-you-type-in-ms-access-forms with mutiple items
While I am searching for better method to exit a Swing Application in between
I want users access the cgi script for searching tags in my blog, but
I am searching for a method to intersect my array collections. I have one
I am searching about drawing bordered text on UIView. Implemented following method : -
Searching here I found that this question was already asked , but I think
Searching for possible ways to get cookie with httpOnly enabled, I cannot find any.
searching around trying to find a way to add index on suffix of a
I'm currently using system.data.oledb but I can't seem to make the update , search,
Directory.GetFiles method fails on the first encounter with a folder it has no access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.