You Are Here:

Community: Developer Discussion Boards

#1 Old more than one HTTP-connection - 2008-01-30, 21:16

Join Date: Mar 2007
Posts: 153
novis
Offline
Regular Contributor
Hello Forum,
I was just wondering if it would be possible to have two different http-connections e.g. to download two different pictures from two different sources?

thx
novis
Reply With Quote

#2 Old Re: more than one HTTP-connection - 2008-01-30, 22:28

Join Date: Jan 2008
Posts: 30
exoersist
Offline
Registered User
Quote:
Originally Posted by novis View Post
Hello Forum,
I was just wondering if it would be possible to have two different http-connections e.g. to download two different pictures from two different sources?

thx
novis
hi novis
first of all please us understand wht actually u want 2 do.
moreover if u want to download two different things from two different sources its quite possible using the
Code:
urllib.urlopen("address")
for two different sources u have to add two times urlopen and the address from where u want to download the pictures.
hope this will work

happy pythonin
exoersist
Reply With Quote

#3 Old Re: more than one HTTP-connection - 2008-02-01, 15:37

Join Date: Jan 2004
Posts: 369
Location: Helsinki
Send a message via Skype™ to miohtama
miohtama's Avatar
miohtama
Offline
Regular Contributor
Quote:
Originally Posted by novis View Post
Hello Forum,
I was just wondering if it would be possible to have two different http-connections e.g. to download two different pictures from two different sources?

thx
novis
It is. If you plan to use sockets in two separate threads simultaneously, there might be problems with accessing sockets in the non-main thread. It is still possible though. Note that a socket cannot be shared between threads.


Mikko Ohtamaa
Twinapex Research
http://www.twinapex.com
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Another HTTP connection problem issw Mobile Java Networking & Messaging & Security 5 2006-10-04 17:36
Http Connection jaceline Mobile Java Tools & SDKs 1 2006-06-09 17:53
Help HTTP Connection.. sourish_khan Symbian Networking & Messaging 0 2006-04-20 11:44
How to kill Http connection kljajo Mobile Java Networking & Messaging & Security 0 2004-07-01 10:40
Nokia and Vodafon Italy --> No http connection javame Mobile Java General 0 2002-11-28 14:57

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia