6 Replies - 334 Views - Last Post: 07 February 2012 - 08:21 PM Rate Topic: -----

Topic Sponsor:

#1 pssttt5  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 07-February 12

http post for nowsms in vb.net

Posted 07 February 2012 - 10:05 AM

Do you know how to use an http post using this code? This code is given by nowsms to use their mms sending but I don't know how to use it in my vb.net application. Here's the code:

POST / HTTP/1.0
Accept: */*
Content-type: multipart/form-data; boundary=”–boundary-border–”
Content-length: xxxxx (size of content part of post)
Authorization: username:password (base64 encoded)

—-boundary-border–
Content-Disposition: form-data; name=“PhoneNumber”

+448080148324
—-boundary-border–
Content-Disposition: form-data; name=”MMSFrom”

sender@domain (or +38484753009)
—-boundary-border–
Content-Disposition: form-data; name=”MMSSubject”

Message Subject
—-boundary-border–
Content-Disposition: form-data; name=”MMSText”

An optional text part of the message.
—-boundary-border–
Content-Disposition: form-data; name=”MMSFile”; filename=”original-filename.ext”
Content-type: Mime/Type

File data goes here
—-boundary-border—-



You can find the details on the lower part of this page which is the source of the code.
http://www.nowsms.co...-url-submission

Is This A Good Question/Topic? 0
  • +

Replies To: http post for nowsms in vb.net

#2 nK0de  Icon User is offline

  • can't spell BITCH without IT
  • member icon

Reputation: 183
  • View blog
  • Posts: 732
  • Joined: 21-December 11

Re: http post for nowsms in vb.net

Posted 07 February 2012 - 10:12 AM

This isn't code. This looks more like a HTTP Request.
Was This Post Helpful? 1
  • +
  • -

#3 smohd  Icon User is offline

  • Critical Section
  • member icon



Reputation: 1644
  • View blog
  • Posts: 4,126
  • Joined: 14-March 10

Re: http post for nowsms in vb.net

Posted 07 February 2012 - 10:34 AM

Read again their doc, that is not a code to use. What they said there is:

Quote

The Now SMS & MMS Proprietary format for submission of an MMS message is the interface that is used by the “Send MMS Message” form in the web menu interface of the gateway.

To submit a message via this interface, a user account must be specified on the “SMS Users” configuration dialog.

To submit it the same way that the “Send MMS Message” form does in the gateway’s web menu interface, you need to do an HTTP POST in the “multipart/form-data” MIME type.

Basically, when you POST, it would look something like this:

So it is a look of HTTP post.
Was This Post Helpful? 1
  • +
  • -

#4 pssttt5  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 07-February 12

Re: http post for nowsms in vb.net

Posted 07 February 2012 - 10:40 AM

View Postsmohd, on 07 February 2012 - 10:34 AM, said:

Read again their doc, that is not a code to use. What they said there is:

Quote

The Now SMS & MMS Proprietary format for submission of an MMS message is the interface that is used by the “Send MMS Message” form in the web menu interface of the gateway.

To submit a message via this interface, a user account must be specified on the “SMS Users” configuration dialog.

To submit it the same way that the “Send MMS Message” form does in the gateway’s web menu interface, you need to do an HTTP POST in the “multipart/form-data” MIME type.

Basically, when you POST, it would look something like this:

So it is a look of HTTP post.


If it is an http request, then how will i call that in vb.net? i've tried using webclient downloadstring as it usually used in other programs but i cant make it work.

View PostnK0de, on 07 February 2012 - 10:12 AM, said:

This isn't code. This looks more like a HTTP Request.

How will I call that in my vb.net app? Webclient downloadstring doesn't work for that. thnx

View PostnK0de, on 07 February 2012 - 10:12 AM, said:

This isn't code. This looks more like a HTTP Request.


Then how will i be able to call this in vb.net?
Was This Post Helpful? 0
  • +
  • -

#5 smohd  Icon User is offline

  • Critical Section
  • member icon



Reputation: 1644
  • View blog
  • Posts: 4,126
  • Joined: 14-March 10

Re: http post for nowsms in vb.net

Posted 07 February 2012 - 11:09 AM

I will advice you read their documentation and see if they provide any interface to interact with their application. If they have one, they will also have user manual/documentation that teach you how to integrate with it.
Was This Post Helpful? 2
  • +
  • -

#6 pssttt5  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 07-February 12

Re: http post for nowsms in vb.net

Posted 07 February 2012 - 08:11 PM

View Postsmohd, on 07 February 2012 - 11:09 AM, said:

I will advice you read their documentation and see if they provide any interface to interact with their application. If they have one, they will also have user manual/documentation that teach you how to integrate with it.


Ive read the documentation but ofcourse it doesn't focus on vb.net implementation.
Was This Post Helpful? 0
  • +
  • -

#7 nK0de  Icon User is offline

  • can't spell BITCH without IT
  • member icon

Reputation: 183
  • View blog
  • Posts: 732
  • Joined: 21-December 11

Re: http post for nowsms in vb.net

Posted 07 February 2012 - 08:21 PM

of course there can't be any vb.net implementation if you search like that. what smohd meant was to look for an API (Application programming interface) of some sort of which would provide functions to interact with their application.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1