|
-
Feb 8th, 2007, 02:00 PM
#1
Junior Member
Re: Winsock: HTTP File Upload
Thanks for such a wonderful script. How do I cite you as a credit for when I use it?
I got this error:
HTTP/1.1 406 Not Acceptable
Date: Thu, 08 Feb 2007 19:12:41 GMT
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>406 Not Acceptable</TITLE>
</HEAD><BODY>
<H1>Not Acceptable</H1>
An appropriate representation of the requested resource /politicstestresults/post_dump.php could not be found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.37 Server at www.kelceycoe.com Port 80</ADDRESS>
</BODY></HTML>
I've uploaded the files to my upload directory as shown, and chomodded the directory and php files as 777. Is that right or am I doing something way wrong? Thanks.
Last edited by kelceycoe; Feb 8th, 2007 at 02:14 PM.
-
Feb 9th, 2007, 12:15 AM
#2
New Member
Re: Winsock: HTTP File Upload
Guys,
Me trying to upload file using VB HTTP Post method. Can successfully upload the files when my client machine is English OS . However , the problem occurs when am trying to upload the files from Chinese OS. It seems that the file uploaded is getting corrupted and could not be opened in correct format. This is applicable for binary files. The text files could be uploaded successfully.
I have tried setting content-type, charset,codepage etc properties to assemble the body.
Can anyone help me ? Its urgent ....Hope to find some VB GURU in this group.HELP !
Thanks in advance,
Ashish.0.
 Originally Posted by kelceycoe
Thanks for such a wonderful script. How do I cite you as a credit for when I use it?
I got this error:
HTTP/1.1 406 Not Acceptable
Date: Thu, 08 Feb 2007 19:12:41 GMT
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>406 Not Acceptable</TITLE>
</HEAD><BODY>
<H1>Not Acceptable</H1>
An appropriate representation of the requested resource /politicstestresults/post_dump.php could not be found on this server.<P>
<HR>
<ADDRESS>Apache/1.3.37 Server at www.kelceycoe.com Port 80</ADDRESS>
</BODY></HTML>
I've uploaded the files to my upload directory as shown, and chomodded the directory and php files as 777. Is that right or am I doing something way wrong? Thanks.
-
Jul 31st, 2007, 09:25 AM
#3
New Member
Re: Winsock: HTTP File Upload
Please please please
Anyone here can convert this code to use Microsoft Internet Controls WebBrowser control ??..instead WinSock..
Please
WebBrowser control in Microsoft Internet Controls includes function Navigate and Navigate2, which can send navigate and post data and Headers usint it..
I tried, but I couldn't make it work
So, please anyone can make it..really need that..
Last edited by WRYWERT; Jul 31st, 2007 at 09:29 AM.
-
May 26th, 2008, 02:39 AM
#4
Re: Winsock: HTTP File Upload
Thanks for the code visualAd. I was able to get most of it done myself before I saw this using a packet sniffer, but I was curious about the "boundaries". They can really be random?
Edit:
After reading more on it, boundaries are indeed random, and are nothing but delimiters that should be guaranteed to not appear in the files being uploaded (which would confuse the webserver).
Last edited by DigiRev; May 26th, 2008 at 04:33 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|