Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hanging wwIPStuff Post
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00292882
Message ID:
00292900
Views:
21
I just did some Network Monitoring and it looks like I am missing some HTTP header information. Can anyone recommend what I should add to my code to get all the proper header info in there? I plan to upload .gif and .gz and .zip files and can't seem to get it all together.

I ran Network Monitor and found some definite differences between the working (browser-based upload) and nonworking (my VFP-based upload). Where should I change my code to get all the proper header info in so the upload will work? It seems like I am so close....



Network Monitor of working upload when using my browser:
POST /upload.exe HTTP/1.0
Accept: application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Referer: http://192.168.200.131:6363/upload.html
Accept-Language: en-us
Content-Type: multipart/form-data; boundary=---------------------------7cfc2260530
User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)
Host: 192.168.200.131:6363
Content-Length: 4078
Connection: Keep-Alive
Cookie: ASPSESSIONIDQGGQGGWH=DJOJLLFCLNKJHNKJDGPOMKNL; ASPSESSIONIDGQQQGGMR=KAABPLFCPIGOBMMIMMGAACFM
-----------------------------7cfc2260530
Content-Disposition: form-data; name="filename"; filename="H:\alex.gif"
Content-Type: image/gif
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_



Not working (hanging VFP) when using my .prg:
POST /upload.exe HTTP/1.0
Content-Type: multipart/form-data; boundary=---------------------------7cf31319e0188
Content-Type: multipart/form-data
User-Agent: West Wind Web Connection Version 2.95a
Host: 192.168.200.131:6363
Content-Length: 4027
---------------------------7cf31319e0188
Content-Disposition: form-data; name="alex.gif"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform