DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Python (http://www.daniweb.com/forums/forum114.html)
-   -   Python modules .. (http://www.daniweb.com/forums/thread174172.html)

starzstar Feb 7th, 2009 2:17 pm
Python modules ..
 
Are there any equivalent classes in python for the for the following
java classes
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.protocol.Protocol;

Thanks

int3grate Feb 8th, 2009 12:37 am
Re: Python modules ..
 
check out httplib
http://docs.python.org/library/httplib.html

evstevemd Feb 8th, 2009 2:41 am
Re: Python modules ..
 
I don't Know what those modules do, but For it sounds to me like you need to take a look at socket module

http://www.google.co.tz/search?q=SOC...ient=firefox-a

int3grate Feb 8th, 2009 3:52 am
Re: Python modules ..
 
Quote:

Originally Posted by evstevemd (Post 798543)
I don't Know what those modules do, but For it sounds to me like you need to take a look at socket module

http://www.google.co.tz/search?q=SOC...ient=firefox-a

Even if you don't know what they do... If you would have spent 3 seconds and read his post, obviously he's trying to interface with the HTTP protocol. Giving him a link to look up how to send raw data across the network using the sockets module is useless....

evstevemd Feb 8th, 2009 4:18 am
Re: Python modules ..
 
Quote:

Originally Posted by starzstar (Post 798240)
A
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.protocol.Protocol;
Thanks

You missed my point :(
I knew he was dealing with network protocols but didnt knew WHAT PROTOCOL do those modules support. Seeing the module name, I suggested he would check the sockets module.

Anyway, I don't know the modules and Java in general...so....I would not argue anymore :)


All times are GMT -4. The time now is 9:39 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC