Em Andamento

Windows Phone 8 HTTP Multipart POST

Here's the instructions given to me that needs to be coded into a usable WP8 function.

I want a usable function where I will just call a function with parameters. Like this upload(parameters here)

The URL to use: http://thisisaurl (parameters and instructions listed below):

All data items are sent as one multi-part http request

usr=<username>

password=<md5 of the password>

message=<message string>

picture data (raw picture file data)

Message string format

<header, this can be as is> 0 BERN;FLD;1323106465589-1;

<page 1, ! is the delimiter between fields> 12/4/2013!4:54 PM;

<page 2, ! is the delimiter between fields, gps coordinates> 14.634559,121.071717;

<page 3> 4!Ygh

Sample

msg = 0 BERN;FLD;1323106465589-1;12/4/2013!4:54 PM;14.634559,121.071717;4!Ygh

pass = jbrc

Adding: usr = jbrc

Adding [url removed, login to view]

usr => jbrc

pass => jbrc

msg => the formatted string containing the data

Also the messages have to be sent as multi-part POST not as basic posts.

UPDATED INSTRUCTIONS:


Here's the instructions given to me that needs to be coded into a usable WP7 / WP8 compatible function.
I want a usable function where I will just call a function with parameters. Like this upload(parameters here)


Function to format:
void string upload(String string_Username, String string_Password, String string_Date, String string_Time, String string_Latitute, String string_Longitude, String

string_Height, StringstringDetails, byte[] imageToBeUploaded, String str_fileNameOfTheImageToBeUploaded)
{
//function here

return the response of the Http request or you can do this to another function as long as i get the response.

}

The URL to use: http://thisisaurl (parameters and instructions listed below):

All data items are sent as one multi-part http request
usr=string_Username
password=string_Password
message=<message string>
picture data (raw picture file data)

Message string format
<header, this can be as is> 0 BERN;FLD;1323106465589-1;
<page 1, ! is the delimiter between fields> string_Date!string_Time;
<page 2, ! is the delimiter between fields, gps coordinates> string_Latitute,string_Longitude;
<page 3> string_Height!stringDetails

Sample
msg = 0 BERN;FLD;1323106465589-1;string_Date!string_Time;string_Latitute,string_Longitude;string_Height!stringDetails
pass = string_Password
Adding: usr = string_Username
Adding pic0.jpg //imageToBeUploaded


usr => string_Username
pass => string_Password
msg => the formatted string containing the data

Also the messages have to be sent as multi-part POST not as basic posts.

Habilidades: .NET, Programação C#, Windows Phone

Ver mais: windows phone http post, windows phone post, windows phone http multipart, post data multipart windows phone, windows phone multipart post data, windows phone pass username password url, windows phone post multipart, http post windows phone, multi part file upload windows phone, multipart http request, http request, windows net use username password, http multi part, upload http request, format string http post, post multi part, multi part post, http post multi, password pass phone, windows phone upload file, sample post, post header, multipart upload, windows phone file upload, GPS Function

Acerca do Empregador:
( 2 comentários ) Manila, Philippines

ID do Projeto: #5110565

Premiar a:

lebavui

Hi. I have experience with WP7 & 8 application development. This project is easy to me. Ready for you. Let me help you to do it. Thanks.

₱1220 PHP em 0 dias
(6 Avaliações)
4.8

2 freelancers estão ofertando em média ₱1220 para este trabalho

sourabhs8

hi, i've 3+ year of exp in windows phone app development and web app development. i need to discuss more.... thank you

₱1220 PHP in 5 dias
(3 Comentários)
2.6