hi all
i want send a http response to a browser that it navigate to a specific url that i want
can any one tell me what this response is??
thx
Printable View
hi all
i want send a http response to a browser that it navigate to a specific url that i want
can any one tell me what this response is??
thx
To open given url in a system browser use QDesktopServices::openUrl.
If you are asking what your program, acting as an HTTP server, should return then you need to send a 300 series HTTP Status code. This has nothing to do with Qt.
hi Chris
thanks for reply
i know that i must use a status line with 300 series code,but i don't know what header is good for my work.
please tell me which header is good for this work?
thanks in advance.
"Location". Next time please post in the right forum (General Programming).
thanks a lot...
Why didn't you volunteer that information in the first place rather than issue a general question with no specifics?
"Location" as wysota says and as documented under 301/302 in the page I linked to. You should also put a short HTML message and link in the response body.Quote:
please tell me which header is good for this work?