User Profile

Collapse

Profile Sidebar

Collapse
allavarapu
allavarapu
Last Activity: Oct 22 '07, 12:35 PM
Joined: Sep 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • allavarapu
    replied to How to find Directory Existance
    Hi arne
    Thanks
    divakar
    See more | Go to post

    Leave a comment:


  • allavarapu
    started a topic How to find Directory Existance

    How to find Directory Existance

    Hi All,

    How can we found whether directory or/and file existed in linux filesystem . In shell script to check file existance : if[-f $fname] and Directory existance using if[-d $dname] . Than how can we check using system call, please specify the name.
    Thanks
    Allavarapu
    See more | Go to post

  • allavarapu
    started a topic Web service client using https

    Web service client using https

    Hi All,

    I am trying to connect .NET web service using HTTPS. I wrote a python script using https. For that need to send SOAP message to the server. But it is giving error 401.3 execution access is denied.(SOAP message not processing)
    I have a doubt can we access web services using HTTPS only, or need to have any other.
    I am sending the code::
    Code:
    import httplib
    a=open('/root/Desktop/b.xml','r')
    ...
    See more | Go to post

  • allavarapu
    replied to HTTP Protocol
    Hello bartonc,

    It is problem with Firewall. It is blocking me to access the network. If i run the script from public IP it's working.

    But i have one doubt about this, i can access websites form mozilla firefox or other browser. How can i run my script with in my private network, there is any possiblety to access http protocol.


    Thanks
    ...
    See more | Go to post

    Leave a comment:


  • allavarapu
    replied to HTTP Protocol
    Hello

    I tried your suggested code. I got the error::

    Traceback (most recent call last):
    File "first.py", line 5, in <module>
    f = urllib.urlopen( "http://www.google.com" , proxies=proxies )
    File "/usr/local/lib/python2.5/urllib.py", line 82, in urlopen
    return opener.open(url )
    File "/usr/local/lib/python2.5/urllib.py",...
    See more | Go to post

    Leave a comment:


  • allavarapu
    replied to HTTP Protocol
    I also tried for this url script::

    Code:
    
    import urllib
    
    proxies = proxies={'http': '192.168.0.2:80'}
    
    f = urllib.urlopen("http://www.google.com",proxies={})
    buf = f.read()
    print buf
    f.close()
    Hear also it say the same Like
    ........
    IOError: [Errno socket error] (-2, 'Name or service not known')...
    See more | Go to post

    Leave a comment:


  • allavarapu
    replied to What is your OS and Python Version
    Hi,
    I am using RedHat linux
    Python version 2.3
    See more | Go to post

    Leave a comment:


  • allavarapu
    started a topic HTTP Protocol

    HTTP Protocol

    Hi,

    I am writing http protocol to get some data from servers. If i was using my localhost, getting replay from local and if want access other remote sites, i am getting error. Please reply it

    My localhost client script:::

    [CODE=python]
    import httplib
    h = httplib.HTTP('l ocalhost',80)
    h.putrequest('G ET','')
    h.putheader('Us er-Agent','Lame Tutorial Code')
    h.putheader('Ac cept','text/html')...
    See more | Go to post
    Last edited by bartonc; Sep 18 '07, 03:31 PM. Reason: Added [CODE=python][/CODE] tags.

  • allavarapu
    started a topic HTTP Protocol

    HTTP Protocol

    Hi,

    I am writing http protocol to get some data from servers. If i was using my localhost, getting replay from local and if want access other remote sites, i am getting error. Please reply it

    My localhost client script:::


    import httplib
    h = httplib.HTTP('l ocalhost',80)
    h.putrequest('G ET','')
    h.putheader('Us er-Agent','Lame Tutorial Code')
    h.putheader('Ac cept','text/html')...
    See more | Go to post

  • allavarapu
    started a topic Http protocol Script

    Http protocol Script

    Hi,
    I am new to Python and wrote a http protocol script. I got this error please slove this

    my server:::



    import string,cgi,time

    from os import curdir, sep

    from BaseHTTPServer import BaseHTTPRequest Handler, HTTPServer





    class MyHandler(BaseH TTPRequestHandl er):



    def do_GET(self):
    ...
    See more | Go to post

  • allavarapu
    started a topic python http protocol

    python http protocol

    Hi
    This is the program .
    [CODE=python]
    import sys, httplib
    showlines = 6
    try:
    servername, filename = sys.argv[1:] # cmdline args?
    except:
    servername, filename = 'starship.pytho n.net', '/index.html'
    print servername, filename
    server = httplib.HTTP(se rvername) # connect to http site/server
    server.putreque st('GET', filename) ...
    See more | Go to post

  • allavarapu
    started a topic python http protocol

    python http protocol

    Hi,
    I am writing HTTP service in redhat linux. I got error at http.endheaders ()

    error:

    File "http_test1.py" , line 33, in ?
    print server.fetch("/index.htm")
    File "http_test1.py" , line 23, in fetch
    http.endheaders ()
    File "/usr/lib/python2.3/httplib.py", line 712, in endheaders
    self._send_outp ut()
    File "/usr/lib/python2.3/httplib.py",...
    See more | Go to post
No activity results to display
Show More
Working...