Win a copy of Rust Web Development this week in the Other Languages forum!

Van Glass

Ranch Hand
+ Follow
since Nov 18, 2000
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Van Glass

You might consider the following java ftp api.
You shouldn't send the local path of the image, just the filename itself. For more information on HTTP file upload you may wish to refer to RFC 1867

For a Java class to handle this you may look at:

part of Secure iNet Factory suite
you might also look at this library

supports FTP, FTPS and SFTP protocols.
What transport protocol is the client using? i.e. is it a web based application? If so, then to get the code to execute on the client side it would need to be in the form of an applet.
Gmail uses a secure SSL POP/SMTP connections that aren't blocked by ISP's. It may be that your ISP is only allowing you connections to it's own SMTP server and no others ... this is to prevent spam.

To verify try connecting manually to one of the MX hosts using telnet command:


telnet hostname 25

If you get a response your ok. Otherwise your ISP is blocking you.
Check out the following classes


The HttpSession class has some automatic session/cookie handling built in for easy navigation and supports HTTP/S
Are you referring to ssh port forwarding? Not sure if this will help but take a look at the com.jscape.inet.ipclientssh.IpClientSsh class
To perform a FTP resume you must issue the REST command to the server. I'm not sure that the ftp url syntax will allow you to do this as when using the ftp url syntax there is no way of telling it the offset from which to resume file transfer. To accomplish this you would need to use raw sockets.
Have a look at the SSLSocket class.
443 is typically reserved for HTTPS protocol. If you have IIS installed on your machine then it may be using this port. I would recommend disabling IIS (if installed) to see if this helps. Otherwise, check your services in Control > Services to see if there are any other web based applications that may be running that are binding to this port.
400 error code means "bad request". It may be that the url only accepts POST requests or there is something that is not properly URL encoded in your parameters.
ssh is one solution. The other is to tunnel your telnet connection thru an ssl server port on the remote system. This way the connection from you to the server is protected using SSL and the data is then forwarded from the server to the local port running telnet. You will of course need to configure this on your server so port forwarding can occur.

For an example of the client side see the com.jscape.inet.telnetssl.TelnetSsl class found in Secure iNet Factory

See the JavaDoc for details.
To do this you would need to use Dns to validate the domain using a reverse dns lookup.

See the com.jscape.inet.dns.DnsRequest class for an example of how to get mail domain records for a domain name.
See the following article:

In particular you may wish to look at the Ssh/SshScript and SshSession classes found in SSH Factory which allow you to write scripted ssh sessions.
In order to read attachments from an email you need to break out the MIME parts of the message using the message boundary specified in the Content-Type header.