Hi arne
Thanks
divakar
User Profile
Collapse
-
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 -
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') -
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
...Leave a comment:
-
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",...Leave a comment:
-
I also tried for this url script::
Hear also it say the same LikeCode: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()
........
IOError: [Errno socket error] (-2, 'Name or service not known')...Leave a comment:
-
-
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')... -
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')... -
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):
... -
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) ... -
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",...
No activity results to display
Show More
Leave a comment: