Home > Archive > Visual Basic > April 2006 > Two "@" (at the rate) signs in Internet Transfer Protocol's URL
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Two "@" (at the rate) signs in Internet Transfer Protocol's URL
|
|
|
| Hello all,
Internet Transfer Control (Inet) is not happy with 2 "@" signs in its
URL. Some ISP's these days provide FTP usernames of the type
<unique_username>@<domain>.<toplevel>. The problem with transfering
data through VB's Inet control is that it dislikes 2 "@" when sending
Inet1.URL = "username@domain.toplevel:password@domain.toplevel".
Hypothetical example:
site = abc.com
username = johnsmith@abc.com
password = something
Inet1.URL will be johnsmith@abc.com:something@abc.com -- and that will
return "URL is malformed". How can a username be sent with escaped "@"?
I tried to find an escape character, but in vain. Chr(64) doesnt take
me anywhere either. Any ideas? I am going blank, and its just Sunday!
Thanks.
Chirag Shukla.
| |
|
| Sorry, thats my bad!!
It works just fine without any problem. I did not realize that I used:
Inet1.URL = somedomain_variable (bad)
Changed that to:
Inet1.RemoteHost = somedomain_variable
and everything started working just fine. This year has not treated me
well. Sorry folks.
Chirag Shukla.
PS: Perl is better when it comes to ftp'ing (my opinion only)
|
|
|
|
|