I use the following:
http = New HTTPSocket
http.yield = true
http.SetRequestHeader ("Host", "xxxx.com")
http.SetRequestHeader ("Connection", "keep-alive")
http.SetRequestHeader ("User-Agent", "Mozilla/5.0 (Macintosh; U;
PPC Mac OS X; en) AppleWebKit/125.5.7 (KHTML, like Gecko) Safari/
125.12")
http.SetRequestHeader ("Accept", "*/*")
http.SetRequestHeader ("Accept-Encoding", "gzip, deflate;q=1.0,
identity;q=0.5, *;q=0")
http.SetRequestHeader ("Accept-Language", "en, ja;q=0.50")
Johan Simons
On 04/02/2007, at 8:06 PM, Guyren Howe wrote:
I need to do an upload to a PHP server from REALbasic.
I found an example from Bucktail Software and have looked at the
relevant RFC. I believe I'm doing everything correctly. Using an
HTTP sniffer, I'm sending virtually the same thing as Firefox (I
can't set the referer header for some reason).
All I ever get is an error 3 from the server.
Does anyone have any idea what I might be missing?
Regards,
Guyren G Howe
Relevant Logic LLC
guyren-at-relevantlogic.com ~ http://relevantlogic.com
REALbasic, PHP, Ruby/Rails, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>