×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    153

    more than one HTTP-connection

    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

  2. #2
    Registered User
    Join Date
    Jan 2008
    Posts
    30

    Re: more than one HTTP-connection

    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

  3. #3
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: more than one HTTP-connection

    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

    http://mfabrik.com
    http://blog.mfabrik.com

Similar Threads

  1. Another HTTP connection problem
    By issw in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2006-10-04, 16:36
  2. Http Connection
    By jaceline in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-06-09, 16:53
  3. Help HTTP Connection..
    By sourish_khan in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-04-20, 10:44
  4. How to kill Http connection
    By kljajo in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-07-01, 09:40
  5. Nokia and Vodafon Italy --> No http connection
    By javame in forum Mobile Java General
    Replies: 0
    Last Post: 2002-11-28, 13:57

Posting Permissions

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