drago77 0 Posted November 21, 2016 Report Share Posted November 21, 2016 Hi, i am new in this community and i hope i can find a little help here. I am facing a problem with the codes i need to write to create a socket post on one of my websites. I already used the socket poster on a different module of this website where was a normal submission form - using socket add parameter, but this time i am facing a multipart form-data witch uses boundary to separate the info you send to the server. The code generated in Live HTTP headers looks like this: http://mysite.usite.pro/stuff POST /stuff HTTP/1.1 Host: mysite.usite.pro User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0 Accept: application/xml, text/xml, */*; q=0.01 Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate X-Requested-With: XMLHttpRequest Referer: http://mysite.usite.pro/stuff/0-0-0-0-1-1 Content-Length: 73503 Content-Type: multipart/form-data; boundary=---------------------------26922771414163 Cookie: lmysitepPp=0; lmysitep2=0; lmysitepSum=0; lmysitepA16=0; lmysiteuzll=1479736046; lmysitesocses=6ckGkzFQjccIMH3siBUj467DkTbjT1s2JMX7t0D3qKnH%21eUo; __utma=1.509145275.1479597638.1479597638.1479597638.1; __utmz=1.1479597638.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _ym_uid=1479597638404272523; lmysiteuCoz=1jHXuje49Za45K1 Connection: keep-alive -----------------------------26922771414163 Content-Disposition: form-data; name="jkd498" 1 -----------------------------26922771414163 Content-Disposition: form-data; name="jkd428" 1 -----------------------------26922771414163 Content-Disposition: form-data; name="ocat" 1 -----------------------------26922771414163 Content-Disposition: form-data; name="title" post title -----------------------------26922771414163 Content-Disposition: form-data; name="brief" post text -----------------------------26922771414163 Content-Disposition: form-data; name="screen"; filename="poster.jpg" Content-Type: image/jpeg ÿØÿà Can anyone help me with the codes to make a socket post with this kind of form, because i don't understand how can i set the data i need to post...Thank you in advance Quote Link to post Share on other sites
drago77 0 Posted November 21, 2016 Author Report Share Posted November 21, 2016 I have figured out how to do it... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.