Path: news.mathworks.com!not-for-mail
From: "Michele " <denber.nospam@mindspringNOSPAM.com>
Newsgroups: comp.soft-sys.matlab
Subject: urlread passing special characters
Date: Wed, 20 Feb 2008 22:08:02 +0000 (UTC)
Organization: Michele Denber (ID: 1-A7A3B)
Lines: 18
Message-ID: <fpi8c2$t5k$1@fred.mathworks.com>
Reply-To: "Michele " <denber.nospam@mindspringNOSPAM.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1203545282 29876 172.30.248.37 (20 Feb 2008 22:08:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 20 Feb 2008 22:08:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 174773
Xref: news.mathworks.com comp.soft-sys.matlab:452769


Help!  I need to do a urlread with a GET method and a
parameter that contains slashes, eg.

urlread ('http://192.168.0.253', 'GET',
{'/goform/getdevicestatus', ''})

The problem is that urlread translates the / (hex 2F) into
the 3 character string '%2F' in the actual TCP packet data
that gets sent out.  This is similar to the problem I had
last year getting urlread to take base64 encoded passwords.
 That one was solved by using
urlConnection.setRequestProperty.  Unfortunately, I don't
know if I can do that in this case, or how to do it.  I'm
not sure what "property" I might need to use.

So my question is, is there a way in Matlab to assemble a
TCP packet that includes special characters in the data? 
Any and all help would be greatly appreciated.  Thanks!