473,653 Members | 3,000 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Downloading from a clean url

General:
How do I download a page's data from a clean url.

Specific:
I'm using PyQt's QHttp and QUrl classes for requests and acquiring the
response, but I can't figure out how to access a page's data without
knowing the file of the url's path. For instance http://kde.org

Thanks,
-Dieter

Jun 21 '07 #1
3 1463
On 6/20/07, D.Hering <ve*******@gmai l.comwrote:
General:
How do I download a page's data from a clean url.

Specific:
I'm using PyQt's QHttp and QUrl classes for requests and acquiring the
response, but I can't figure out how to access a page's data without
knowing the file of the url's path. For instance http://kde.org
If the page is omitted, as in your example of http://kde.org, the page is /
--
Evan Klitzke <ev**@yelp.co m>
Jun 21 '07 #2

Evan Klitzke wrote:
On 6/20/07, D.Hering <ve*******@gmai l.comwrote:
General:
How do I download a page's data from a clean url.

Specific:
I'm using PyQt's QHttp and QUrl classes for requests and acquiring the
response, but I can't figure out how to access a page's data without
knowing the file of the url's path. For instance http://kde.org

If the page is omitted, as in your example of http://kde.org, the page is /
Right, but so far I'm not able to get a response unless I actually
provide the actual page and it's extension in the path of the url. For
instance /page.html or /this/path/to/page.html ...etc.
>

--
Evan Klitzke <ev**@yelp.co m>
Jun 21 '07 #3
On 6/21/07, D.Hering <ve*******@gmai l.comwrote:
>
Evan Klitzke wrote:
On 6/20/07, D.Hering <ve*******@gmai l.comwrote:
General:
How do I download a page's data from a clean url.
>
Specific:
I'm using PyQt's QHttp and QUrl classes for requests and acquiring the
response, but I can't figure out how to access a page's data without
knowing the file of the url's path. For instance http://kde.org
If the page is omitted, as in your example of http://kde.org, the page is /

Right, but so far I'm not able to get a response unless I actually
provide the actual page and it's extension in the path of the url. For
instance /page.html or /this/path/to/page.html ...etc.
If that's the case, it sounds like the web server on the other end is
misconfigured (or maybe you're getting a 302 or something like that).
Install LiveHTTP Headers and see how your browser navigates to the
page.

--
Evan Klitzke <ev**@yelp.co m>
Jun 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2160
by: Luke StClair | last post by:
Only marginally belonging in this newsgroup... but oh well. I've just started writing in python, and I want to make the files available on the web. So I did the standard <a href="mypath/myfile.py"> and not surprisingly, it displays like a webpage, but just the code. If I gzip it, and then link to the new file, it will download, but its so small I don't want it zipped. How can I make this into a downloadable file SIMPLY? The other...
2
7045
by: Dave | last post by:
Dear Sirs, Is there a way to get the width and height of an image without downloading the image, or with just downloading a minimal portion of the image? For instance, I have a list of 10,000 image urls, and I would like to get the width and height of every image without spending the time and bandwidth of downloading every image.
3
1553
by: Brian Kitt | last post by:
I have an animated .gif on my website. It is about 36k. I want this on every page in my site, but it appears that it downloads every time a user loads a page. This will kill dial up users. Shouldn't I.E. pull this from Cache if it's there? Is there a way for me to set this image to not download on every page, but instead, use if from Temporary Internet Files on the users Cache? Thanks
1
1058
by: Sean | last post by:
Hi all, I am creating a web application to convert files to a different format. The interface is simple in that there's a filename control and a submit buttom. The functionality I'm looking for is for the user to use the filename control to indicate which file to convert, then to press submit, the file is then uploaded to the application, converted, and then the response for the user would be a 'Save file as..' dialog, and they then...
0
1514
by: TJ | last post by:
Hi, I've written code web-based uploading and downloading. Here is some code for it. For saving file into MS-SQL database, SaveFileIntoDB(HttpPostedFile file) { int fileLength = file.ContentLength; byte fileContent = new byte; int lastPos = file.FileName.LastIndexOf('\\');
2
2430
by: Bala | last post by:
Hi I am trying to download the PDF files from my webserver using ASP.Net. All my files are stored at F Drive on webserver. Like this F:\Main Folder\Sub Folder\Files\File1.pdf I am impersonating the domain user account and downloading the file, It seems the impersonate is got success, but its not download the file. Its simply downloading some junk pdf file instead of original file.
1
2069
by: just.starting | last post by:
Hi, My dot net client downloads files and checks for any new files time to time. The server is apache2.0.53 server. So what happens is that my file download thing works fine if I dont try to call any page from the server while downloading. If I try to call a single page while downloading a file then the page request goes time out and the server then closes the existing download stream and the client doestn't throw any exception. So many a...
0
1633
by: just.starting | last post by:
I am having problem while downloading files from an apache server2.0.53 with php4.3.10.While downloading some files it generally stops after downloading some specific amount and then stops downloading with the error message: "the source file could not be read". And the error is not dependent on the size of the file, as I can download a file of 6MB but having problem with a file with 652KB. It always stops after 666880bytes. Thanks.
12
2575
by: Queez | last post by:
I have a .NET assembly (ScanControl.dll), which accesses a scanner on my client's local machine and allows them to scan a page (Scan()). I have an ASP.NET web application with a page which will (theoretically) use this control to allow a user to scan a page into my database (Scan.aspx). I serve the control as an object on the page, like so: <object id="scanningObj" height="300px" width="500px"...
0
8370
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8590
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5620
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2707
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.